Re: [hackers] [ubase] Set TERM to linux if needed for su and login || sin

From: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
Date: Tue, 3 Jun 2014 19:35:22 +0200

> Would vt100 be more sensible? Thing is if preserve == 0 we'll end up
> with TERM unset (for login specifically).

login takes the value of TERM from its parent. If you executed login
in a telnet session, the telnet daemon will put the value. If you
have a SystemV inittab, then you configure in it the correct value of
TERM for every terminal. If you have a BSD /etc/ttys, then you configure
in it the correct value for every terminal. There is no other usages
of login, so the only way of getting a null value is a misconfiguration,
so you should to assume that the terminal only can handle the minimal
set of features, the features of a dumb terminal.

Regards,

-- 
Roberto E. Vargas Caballero
Received on Tue Jun 03 2014 - 19:35:22 CEST

This archive was generated by hypermail 2.3.0 : Tue Jun 03 2014 - 19:36:21 CEST