> 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