> I have a Wyse 30 serial terminal acting as a console hooked up to the RH
> 7.1 PC. It works fine, but I have to manually change the terminal type to
> wy30 from linux. In NetBSD, this could be done from /etc/inittab and, in
> fact, I have that in inittab:
> s0:12345:respawn:/sbin/getty ttyS2 DT38400 wy30
Why do you call ttyS2 s0. Not that it really matters, but might it not
make more sense to call it S2 (to match the serial port).
Quote:> In BSD, the wy30 would set the terminal type to wy30 for anything coming
> over that serial line, and the man page for getty says it should, too. Yet
> the terminal type remains at linux when I log in. Is there something else
> I have to, or a work-around I could employ?
Does getty use terminfo, or still /etc/termcap per the man pages? When I
connect to a serial port with minicom, it shows my TERM as vt100, but the
system does not know my terminal geometry, so certain programs (like
editors) complained until I set that in ~/.bash_profile.
if [ "`stty size`" = "0 0" ]; then
stty rows 24 cols 80
fi
You could likewise check or set your TERM or both in one shot. For
example:
if [ "`tty`" = "/dev/ttyS2" ]; then
stty rows 24 cols 80
export TERM=wy30
fi
--
David Efflandt - All spam is ignored - http://www.de-srv.com/
http://www.autox.chicago.il.us/ http://www.berniesfloral.net/
http://cgi-help.virtualave.net/ http://hammer.prohosting.com/~cgi-wiz/