Solved

Termcap vs Terminfo

Posted on 2011-03-18
4
837 Views
Last Modified: 2012-05-11
Anyone knows how terminfo works in RedHat Linux

I have one customer using tinyterm with termcap with the emulation wy60w-42 in Unix and the display on the screen is 132 columns

I was told by Red Hat to use terminfo instead of termcap but i dont know how to use it

I know in Linux the directory /usr/share/terminfo

there are all the emulations, example in w directory I have all the wy* emulation

I said in my user profile

TERMINFO=/usr/share/terminfo/w/wy60-42-w
export TERMINFO

but still displaying 80 columns instead of 132

How can I solve this?

Thanks

0
Comment
Question by:voyager431966
  • 2
4 Comments
 
LVL 9

Expert Comment

by:expert_tanmay
ID: 35171497
Just type "set" at the command line to see what TERM is set. You need to set TERM in user profile. The database of all the compiled terminal types must be pointed by TERMINFO.  To locate the database type "locate vt100". Check if you have wy60-42-w in the database. If not you can download the terminal source and compile using tic.

Cheers..
0
 

Author Comment

by:voyager431966
ID: 35183556
Hi Export Tanmay,

Thanks for response to my post,

I add in my user profile the following

TERMINFO=/usr/share/terminfo/w/wy60-w-42
export TERMINFO

But it is displaying 80 culumns instead of 132

Any idea why

Thanks for your help.
0
 
LVL 9

Accepted Solution

by:
svs earned 250 total points
ID: 35184034
First, verify that your terminfo database actually has a definition for wy60-w-42:
env TERM=wy60-w-42 infocmp

Open in new window

You should see a dump of terminal definition.

Second, don't set TERMINFO, set TERM:
export TERM=wy60-w-42

Open in new window


Third, what is "it" that displays 80 columns (what application are you using)?
0
 
LVL 9

Expert Comment

by:expert_tanmay
ID: 35188354
Is the file and the path correct /usr/share/terminfo/w/wy60-w-42 if this is correct you need to set TERM=wy60-w-42

Cheers..
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

How many times have you wanted to quickly do the same thing to a list but found yourself typing it again and again? I first figured out a small time saver with the up arrow to recall the last command but that can only get you so far if you have a bi…
Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now