On Sun, 19 Mar 2006, Wouter Verhelst wrote:

Sure; however, my experience is that most terminal emulators support at
least a useful subset of xterm. The fact that they don't map 100% is
precisely the reason why I don't want to go ahead and say TERM=xterm
everywhere. However, if I log in to a host where rxvt-unicode isn't in
termcap (or whatever), it'd be great if ncurses could just walk some
environment variable until it finds a name that it does, in fact, know.

Stuff like this (in your .login) is already portable, works on every
unix platform.

#!/bin/sh
for name in foo bar xterm
do
        if ( tput -T$name am 2>/dev/null )
        then
                echo ok $name
        fi
done

--
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to