Fwd: sysvinit and TERM
Robert Millan
zeratul2@wanadoo.es
Mon, 26 Jul 2004 18:55:17 +0200
Hey.
I'm forwarding this mail. Miquel kindly sent an explanation on where does the
TERM variable initialisation belong.
On Mon, Jul 26, 2004 at 12:07:53PM +0200, Miquel van Smoorenburg wrote:
> On 2004.07.17 00:48, Robert Millan wrote:
> >
> > Hi Miquel!
> >
> > I have a quick question about init and wonder if you could help:
> >
> > Does sysvinit initialise the TERM variable? Or is someone else (e.g.
> > getty or login) in charge for that?
> >
> > I ask this because we need to define TERM="cons25" on GNU/kFreeBSD and
> > are not sure where it belongs yet.
>
> On Linux, the kernel initializes TERM (to "linux"). That's used in single
> user mode.
>
> After that, for login sessions, getty is responsible for setting it - probably
> leaving it as "linux" for the console and "vt100" for serial lines.
>
> Mike.
--
Robert Millan
(Debra and Ian) (Gnu's Not (UNiplexed Information and Computing System))/\
(kernel of *(Berkeley Software Distribution))