Operating System - HP-UX
1829455 Members
1422 Online
109992 Solutions
New Discussion

Re: Problem with terminfo on HPUX11

 
Frank Worner
Occasional Contributor

Problem with terminfo on HPUX11

I have an application written in house that works fine on HPUX10.20, utilising the terminfo functionality.
However, whenever we try and run this app on an 11 box it fails to work with the message "can't get terminfo entry". This is the same whatever the TERM variable is set to (i.e. vt100, xterm etc.).
Both systems have valid entries in the directory /usr/share/lib/terminfo/x for the xterm definition (for example) but I can see they have increased in size with the later release OS.
The 11 box has GR47 patches installed.

What has changed between releases and do I cater for this change ??

Thanks in advance.

Frank
4 REPLIES 4
Matthias Zander
Advisor

Re: Problem with terminfo on HPUX11

Did You install ncurses on 10.20? Perhaps Your Application looks in a different path for terminfo.

Re: Problem with terminfo on HPUX11

Hello.

Check the terminfo entries on both machines (10.20 and 11.00) with "infocmp" (it creates the readable "source" of the compiled terminfo file based on your TERM variable), and try to find the missing capability or any difference. Then add this missing capability to the source file on your new machine; set TERMINFO to an existing directory ($HOME/.terminfo), and use "tic" to compile the terminfo file. You will have the new terminfo file under $TERMINFO/? (for instance $HOME/.terminfo/v/vt100; maybe you should create the ? directorie(s) too).

Before using your application don't forget to set TERMINFO

Laszlo
Carlos Fernandez Riera
Honored Contributor

Re: Problem with terminfo on HPUX11

As first step do what Lazlo said, untic (or infocmp) to a file in your old box and transfer to your new box.

set TERMINFO variable, to keep save database in /usr/share/lib/terminfo, and tic the file.

Try now.

curses soft has be updated to curses_color.
Search in ITRC for curses.

unsupported
Frank Worner
Occasional Contributor

Re: Problem with terminfo on HPUX11

Gents

Thanks for the help. Laszlo's answer got me the closest, but ultimately the problem was with our application. However, the details Lazlo supplied enabled me to understand what was happeneing and prove the issue was not with the operating system.

I have awarded points based on this fact !!

Frank