Solved

Termcap vs Terminfo

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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How to change the nameserver on Ubuntu Server 6 98
regular expression help for sed command 5 62
Linux 3 59
Shrink Linux Swap File Size CentOS 10 71
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…
Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
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…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

732 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