[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Sheflug] login weirdness
> I've recently added an OpenBSD/sparc box to the LAN - after I log in as
> root either at the console or via ssh it asks me what type of terminal I
> am using (generally prompting me with a sensible guess). The weird thing
> is my Slackware box has just started doing the same thing too. I really
> don't mind but I'm curious to know what's going on (guessing
> kerberos/ssh?).
Don't know why Slack has started doing it (I've got slack 8, rather than 7,
and I'll look at it when I get home tonight), but on OpenBSD root has this in
their ${HOME}/.profile:
eval `/usr/bin/tset -sQ \?$TERM`
and its this (well, tset) that is responsible for showing the "Terminal
type?" prompt. The eval just, well, evaluates the output of tset which is
essentially:
setenv TERM <terminal>;
setenv TERMCAP <termcap entry for terminal>;
Thus, the entire line prompt you for a terminal (tset) and then sets up your
environment magically (tset feeding eval).
Chris...
--
\ Chris Johnson \
\ cej [at] nccnet.co.uk \
\ www.nccnet.co.uk/~cej/ ~-----------------------------------------+
\ Redclaw chat - http://redclaw.org.uk - telnet redclaw.org.uk 2000 \____
___________________________________________________________________
Sheffield Linux User's Group - http://www.sheflug.co.uk .
To unsubscribe from this list send mail to
shef-lug-request@list.sheflug.org.uk with the word
"unsubscribe" in the body of the message.
GNU the choice of a complete generation.