LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   terminfo database (https://www.linuxquestions.org/questions/linux-general-1/terminfo-database-722184/)

davender84 04-28-2009 03:49 AM

terminfo database
 
after compiling the termino file by "tic", the file is placed in "/usr/share/terminfo" and this file contain all information in machine language, i want to know the location of terminfo file which is having information in human readable form or which is not compiled by tic can anybody tell me the location
thanks in adv.

MensaWater 04-29-2009 02:14 PM

On Linux and some UNIX variants you use the infocmp command to get "untic" the compiled file.

The compiled files are are in /usr/share/terminfo/?/<terminfo> where ? is the first character of the terminal type (e.g. /usr/share/terminfo/v/vt100 for vt100 and /usr/share/terminfo/x/xterm for xterm.)

To see the uncompiled information you just run "infocmp <terminfo>".
To save it just redirect into a file.

CAUTION: If you're planning on making your own terminfo file make sure you save the original so you can restore it later. It is easy to screw up a terminfo file.

Also note that while it is uncompiled it is not necessarily "human" readable. You have to understand the syntax. (e.g. \E means escape).


All times are GMT -5. The time now is 03:36 PM.