jensen@adobe.com (Freddy Jensen) (10/01/90)
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@adobe.com adobe!jensen@sun.com adobe!jensen@decwrl.dec.com uucp: ...!{decwrl,sun,uunet,apple}!adobe!jensen phone: (415) 962-3869 / 961-4400
ron@woan (Ronald S. Woan) (10/02/90)
In article <6916@adobe.UUCP>, jensen@adobe.com (Freddy Jensen) writes:
Freddy> I have a question about termcap on the RS/6000:
Freddy> On my sun I have (in my .login) some stuff that allows me
Freddy> to point to various "termcap" files, and set the $term
Freddy> variable, so I can make any terminal work reasonable
Freddy> (including my dial-up from home).
Freddy> I can't make it work on the RS/6000, because it doesn't use
Freddy> termcap.
Freddy> What does it use, and how do I set it up ?
It uses the standard System V terminfo, with a termcap compatibility
library for application compatibility. Take a look at the flat text
terminal definition files in /usr/lib/terminfo to find out which
terminals are supported and roll your own for those that have no
definitions to compile with "tic". Anyway, a quick search through info
using "tic" and "terminfo" as search words should yield some results;
then just export the proper TERM environment variable!
Ron
+-----All Views Expressed Are My Own And Are Not Necessarily Shared By------+
+------------------------------My Employer----------------------------------+
+ Ronald S. Woan woan@peyote.cactus.org or woan%austin@iinus1.ibm.com +
+ other email addresses Prodigy: XTCR74A Compuserve: 73530,2537 +