termcap setup question
John E. Davis
davis at pacific.mps.ohio-state.edu
Tue Dec 11 08:46:21 AEST 1990
Hi,
I have the following in my .login file:
[...]
if (`tty` != "/dev/console") then
unsetenv TERMCAP
setenv TERMCAP ~/.termcap
set noglob
set nostring='No. '
set yesstring='Yes. '
onintr slowSpeed
echo -n "vt320? : Yes."
sleep 5
echo '
eval `tset -sQ -m network:vt320 -m dialup:vt320 -m switch:vt320 -m dumb:vt320 vt320`
goto skipSpeed
slowSpeed:
echo -n $nostring
echo ' '
eval `tset -sQ -m network:?vt300 -m dialup:?vt300 -m switch:?vt300 -m dumb:?vt300 $TERM`
skipSpeed:
unset yesstring nostring def_tty
unset noglob
stty 9600
endif
#
[...]
Now a couple of questions:
1. Sometimes my ~/.termcap is not read. Do I have things setup correctly?
Also, sometimes my screen width and height is all messed up even though these
are clearly defined in the termcap entry.
2. Our system does not have the vt320 in the system termcap so I put it in my
~/.termcap file. However, I also use other terminals and if the terminal type
is not found then I want the system to look in the /etc/termcap file. How do
I do this.
One problem could be that whatever reads the termcap checks to see if the
first charactor in the TERMCAP environment string is a '/' or not. Here I
have a '~'. I really do not want to give an absolute pathname. Is there away
I can have the first charactor be a '/' but use a relative pathname?
I did RTFM but it didn't help.
--
John
bitnet: davis at ohstpy
internet: davis at pacific.mps.ohio-state.edu
More information about the Comp.unix.questions
mailing list