Operating System - HP-UX
1820592 Members
1748 Online
109626 Solutions
New Discussion юеВ

Re: Terminal emulation files

 
machaya chivaviro_2
Occasional Advisor

Terminal emulation files

I have intalled a new server and need to copy my terminal emulation software from the old server to the new server. The new server does not wyse60 which is on the old server. Which files do I need to copy.
6 REPLIES 6
Luk Vandenbussche
Honored Contributor

Re: Terminal emulation files

Hi,

Compare /usr/lib/terminfo on both the servers
Mustafa Gulercan
Respected Contributor

Re: Terminal emulation files

here is terminfo directories;

/usr/lib/terminfo
/usr/share/terminfo
/usr/share/lib/terminfo
/usr/local/lib/terminfo
OldSchool
Honored Contributor

Re: Terminal emulation files

Take a look a "/usr/share/lib/terminfo/w" directory for the wyse files. I would have thought they were already installed, as I've never had to mess w/ them

H.Merijn Brand (procura
Honored Contributor

Re: Terminal emulation files

Those are all "terminfo" defenition locations, as used by curses, curses_colr, and ncurses. The base can be set in $TERMINFO

That system uses the first letter of the $TERM to locate the defenition

# env TERM=xterm TERMINFO=/tmp/terminfo tput clear

will (try to) use /tmp/terminfo/x/xterm

# export TERM=vt320
# export TERMINFO=/usr/share/lib/terminfo_colr
# tput clear

will (try to) use /usr/share/lib/terminfo_colr/v/vt320

The files that are used in that system are `compiled' files (see 'tic' or 'infocmp'). Files like this are not always portable across systems, even minor OS release differences might harm the working of those files. Don't even `hope' to be able to copy them across Operating Systems and expect them to still work: they won't. If you need to convert them, use 'untic' or 'infocmp'

It can also happen that the util or program uses an even older 'termcap' system, usually by linking to libPW or libtermcap. In that case the database is plain text, and found by using $TERMCAP, which defaults (in most cases) to /etc/termcap. That file should be portable from one system to another, and in most cases even from one OS to another.

Enjoy, Have FUN! H.Merijn
Enjoy, Have FUN! H.Merijn
Peter Nikitka
Honored Contributor

Re: Terminal emulation files

Hi,

you can transfer then easily:

Logged in at the old host having the terminal set to the wyse-entry, enter
infocmp >/tmp/wyse.trm

Transfer this file to the new system and (as root) enter:
tic -v wyse.trm

mfG Peter
The Universe is a pretty big place, it's bigger than anything anyone has ever dreamed of before. So if it's just us, seems like an awful waste of space, right? Jodie Foster in "Contact"
machaya chivaviro_2
Occasional Advisor

Re: Terminal emulation files

Thanks guys. I got it was $TERMCAP file.
/etc/termcap
I copied it to the newserver and it worked.