RS/6000 termcap question
Freddy Jensen
jensen at adobe.com
Mon Oct 1 23:54:53 AEST 1990
Hi Folks,
I have a question about termcap on the RS/6000:
On my sun I have (in my .login) some stuff that allows me to point
to various "termcap" files, and set the $term variable, so I can
make any terminal work reasonable (including my dial-up from home).
I can't make it work on the RS/6000, because it doesn't use termcap.
What does it use, and how do I set it up ?
Thanks
Freddy
P.S. here is my current .login termcap stuff:
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
#*--------------------*
#* setup termcap info *
#*--------------------*
echo -n "set terminal (y/n) [n]? "
set in_string=$< # '$<' ---> get input from keyboard
if ("$in_string" != "y") goto DONE_WITH_IT
SETUP_TERMCAP:
set MY_TERMCAP = $HOME/.termcap-$HOSTNAME
echo -n "TERMCAP = $MY_TERMCAP (1), or /etc/termcap (2) ? "
set in_string=$< # '$<' ---> get input from keyboard
if ("$in_string" == "1") then
cat $HOME/.my_termcap /etc/termcap >! $MY_TERMCAP
setenv TERMCAP $MY_TERMCAP
setenv termcap $MY_TERMCAP
set TERMCAP = $MY_TERMCAP
set termcap = $MY_TERMCAP
echo TERMCAP = $MY_TERMCAP
else if ("$in_string" == "2") then
setenv TERMCAP /etc/termcap
setenv termcap /etc/termcap
set TERMCAP = /etc/termcap
set termcap = /etc/termcap
echo TERMCAP = /etc/termcap
else
goto SETUP_TERMCAP
endif
SETUP_TERMINAL:
if ((`tty` == "/dev/console") && ($HOSTNAME == $MAIL_HOST)) then
# biff y # be notified if mail arrives
set in_string="d"
else
echo Terminal: $TERM
echo -n "Reset to: "
set in_string=$< # '$<' ---> get input from keyboard
endif
if ("$in_string" == "") then
setenv TERM vt100_100_by_65
setenv term vt100_100_by_65
set TERM = vt100_100_by_65
set term = vt100_100_by_65
else if ("$in_string" == "h") then
echo " "
echo " vt100 choices:"
echo " "
echo " vt1 (100 columns / 26 lines ) "
echo " vt2 (100 columns / 31 lines ) "
echo " "
echo " vt3 (100 columns / 50 lines ) "
echo " vt4 (100 columns / 65 lines ) "
echo " "
echo " vt5 ( 80 columns / 24 lines ) "
echo " vt6 ( 80 columns / 25 lines ) "
echo " "
echo " vt7 (132 columns / 24 lines ) "
echo " vt8 (132 columns / 25 lines ) "
echo " "
goto SETUP_TERMCAP
else if ("$in_string" != "d") then
setenv TERM $in_string
setenv term $in_string
set TERM = $in_string
set term = $in_string
else
setenv TERM $TERM
set term = $TERM
endif
echo Terminal: $TERM
stty intr "^C" kill "^U" erase "^?"
set noglob; eval `tset -s`; unset noglob
DONE_WITH_IT:
exit (0)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
-------------
Freddy Jensen
Display Postscript Group
Adobe Systems Incorporated
1585 Charleston Road, P.O. Box 7900
Mountain View, CA 94039-7900
Internet: jensen at adobe.com
adobe!jensen at sun.com
adobe!jensen at decwrl.dec.com
uucp: ...!{decwrl,sun,uunet,apple}!adobe!jensen
phone: (415) 962-3869 / 961-4400
More information about the Comp.unix.aix
mailing list