Peter Oberparleiter wrote:
My advise would be to go with:
> <id>:2345:respawn:/sbin/agetty -L 9600 ttyS1 linux
> Does it matter which is coded... agetty vs mingetty ; linux vs xterm?
Yes, it does matter. If you want to use full-screen, color-aware shell
programs, you need to tell Linux about the capabilities of the terminal
emulation. You do this by setting the TERM variable, either after login
(export TERM=<name>) or using the parameter to agetty. According to the
man page, mingetty does not support specifying the TERM variable to use on
the command line, so I'm not sure the parameter to mingetty does anything
at all. The integrated ASCII console implements vt220 plus ISO 6428 color
codes which used to be covered by TERM=linux, but that changed in later
distributions. TERM=xterm comes closest now.
------
Rick Troth wrote:
As Peter was saying, the TERM environment variable is used by
"ncurses" and other text screen presentation libraries to indicate
what kind of control sequences are used (especially for outbound
presentation; input is less well defined).
I think Mark also suggested setting TERM. I always do it with
two statements (because while I much prefer BASH, I hate to be
locked-in to any one shell and some handle 'export' differently):
TERM=vt220
export TERM
The "getty" program varies. Linux has several (where Solaris
and other Unix systems might only have one). As Peter said,
'mingetty' behaves differently from 'agetty' and may not be
what you want to run. If you manually set TERM, it does not
matter so much. In any case, you need a "getty" program
to handle the sign-on procedure. (It does a few communication
related things and then typically hands-off to /bin/login.)
--------
Thanks to both Peter and Rick for explaining this. It's very much
appreciated.
susan
----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390