USER=`whoami`
CURTTY=`tty`
FROMADDR=`last -1 "${FROM}" | grep "${CURTTY}" | awk '{ print $2; }'`
if [ "${FROMADDR}" = "Windows Machine Name" ]; then
TERM=vt100
export TERM
fi
This will only force the terminal to be vt100 for logins originating from
whatever machine you specify. Note: I may have mistaken which field to
print in awk, I think the second field is "from address" but I'm not sure at
the moment. Just check it by running last before implementing this.
>Try to put a export TERM=vt100 (or something) in ~/.profile.
>
>> I have a problem with telnet session on Linux machines. When I make a
>> remote telnet login, I found with 'set' program that my terminal is
>> type 'ansi'. I would like to change the terminal type in a permanent way,
>non
>> also for the current login with 'set term=vt100'. Someone know in wich
>> file is stored the 'term' variable ?
>
>--
>
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/