?
Solved

Termcap vs Terminfo

Posted on 2011-03-18
4
Medium Priority
?
882 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 1000 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

Veeam Task Manager for Hyper-V

Task Manager for Hyper-V provides critical information that allows you to monitor Hyper-V performance by displaying real-time views of CPU and memory at the individual VM-level, so you can quickly identify which VMs are using host resources.

Question has a verified solution.

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

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…
In part one, we reviewed the prerequisites required for installing SQL Server vNext. In this part we will explore how to install Microsoft's SQL Server on Ubuntu 16.04.
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…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Suggested Courses
Course of the Month12 days, 9 hours left to enroll

777 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