From owner-freebsd-bugs Mon May 26 08:06:44 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id IAA22944 for bugs-outgoing; Mon, 26 May 1997 08:06:44 -0700 (PDT) Received: from labs.usn.blaze.net.au (labs.usn.blaze.net.au [203.17.53.30]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id IAA22939 for ; Mon, 26 May 1997 08:06:39 -0700 (PDT) Received: from labs.usn.blaze.net.au (local [127.0.0.1]) by labs.usn.blaze.net.au (8.8.5/8.8.5) with ESMTP id BAA00648; Tue, 27 May 1997 01:05:39 +1000 (EST) Message-Id: <199705261505.BAA00648@labs.usn.blaze.net.au> X-Mailer: exmh version 2.0gamma 1/27/96 To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) cc: gary@systemics.com (Gary Howland), bugs@FreeBSD.ORG Subject: Re: /etc/ttys is broken In-reply-to: Your message of "Mon, 26 May 1997 15:59:55 +0200." <19970526155955.BO13767@uriah.heep.sax.de> X-Face: (W@z~5kg?"+5?!2kHP)+l369.~a@oTl^8l87|/s8"EH?Uk~P#N+Ec~Z&@;'LL!;3?y Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Tue, 27 May 1997 01:05:36 +1000 From: David Nugent Sender: owner-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk > > The latest release of /etc/ttys is broken. Do a diff with an old release > > and the problem will be obvious. > > You could have been more specific. It's not obvious to me what you > mean. It wasn't obvious to me either. I looked, and didn't have a clue as to what Gary was talking about. It appears that he failed to read the relevent manpages. > Btw., David, i think `dialup' is a poor choice. The probably most > ``generic'' TERM entry that could be used is vt100. It constitutes > something like a least common denominator. People having something > else want to adjust their $TERM anyway, and for the remaining 90 %, > it's a good default. The "dialup" term type is a "magic" value. This is the compromise I worked out which causes isdialupttp() to do its stuff, just like "network" is the default for ptys (although the problem isn't present for ptys, since $TERM is typically set over a network login). As a compromise, I suggest something like: [ "x$TERM" = "x" -o "x$TERM" = "xdialup" ] && eval `tset -s "?vt100"` in /etc/profile, and if (!?$TERM || "x$TERM" == "xdialup") then eval `tset -s "?vt100"` endif in /etc/csh.login by default (this is similar to what has to be done for network logins where no TERM is passed). Or if an interactive query is not desired, then just set the variable as desired. Perhaps login(1) can take care of the translation. Only one additional statement is required. Another option would be to change the /etc/ttys to use the new keyword which designates the dialup ttys explicitly as "dialup" and use vt100. However, this isn't backwards compatible with older systems (neither is using "dialup" as the term type, but at least this is more logical to folks who upgrade without reading manpages). The 'problem' was not considered a serious one when committed because people ALWAYS have to edit their ttys for use with dialup anyway, even if only to simply enable the lines in question. They would normally read the manpage first, right? :-) Ok, maybe I'm being too hopeful. In any case, using "dialup" here is not really an error. It causes login to correctly log dialup connections - and you've just reminded me that I haven't yet committed other patches which make use of this. Regards, David David Nugent - Unique Computing Pty Ltd - Melbourne, Australia Voice +61-3-9791-9547 Data/BBS +61-3-9792-3507 3:632/348@fidonet davidn@freebsd.org davidn@blaze.net.au http://www.blaze.net.au/~davidn/