Solved

Termcap vs Terminfo

Posted on 2011-03-18
4
868 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Monthly Recap

May was a big month for new releases from Linux Academy! Take a look at what our team built recently in our blog. You can access the newest releases from our blog.

Question has a verified solution.

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

Have you ever been frustrated by having to click seven times in order to retrieve a small bit of information from the web, always the same seven clicks, scrolling down and down until you reach your target? When you know the benefits of the command l…
The purpose of this article is to demonstrate how we can use conditional statements using Python.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

724 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