Solved

Termcap vs Terminfo

Posted on 2011-03-18
4
841 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Oracle 12c patching 1 59
Scripted configuration of TightVNC with Start on boot 7 51
Linux  Script File Attributes 5 51
installing LSI MegaRAID Storage Manager on CentOS 7 22 54
If you have a server on collocation with the super-fast CPU, that doesn't mean that you get it running at full power. Here is a preamble. When doing inventory of Linux servers, that I'm administering, I've found that some of them are running on l…
The purpose of this article is to fix the unknown display problem in Linux Mint operating system. After installing the OS if you see Display monitor is not recognized then we can install "MESA" utilities to fix this problem or we can install additio…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
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.

932 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

15 Experts available now in Live!

Get 1:1 Help Now