*BSD News Article 17035


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!munnari.oz.au!news.Hawaii.Edu!ames!elroy.jpl.nasa.gov!sdd.hp.com!nigel.msen.com!math.fu-berlin.de!irz401!sax!not-for-mail
From: joerg@sax.sax.de (Joerg Wunsch)
Newsgroups: comp.os.386bsd.development
Subject: Re: Need your opinion (TTYDEF 8-bit clean state)
Date: 11 Jun 1993 21:18:18 +0200
Organization: SaxNet, Dresden, Germany
Lines: 27
Message-ID: <1valpq$i3i@sax.sax.de>
References: <eLshE4iGSD@astral.msk.su> <C86zv6.AMs@sugar.NeoSoft.COM>
NNTP-Posting-Host: sax.sax.de

In article <C86zv6.AMs@sugar.NeoSoft.COM> peter@NeoSoft.com (Peter da Silva) writes:
>
>Other than stty and getty/login (which should interpret "SANE" as
>something system or user specific (say, /etc/default-stty or $STTY)
A very nice idea:-) not only for Russians.
>everything should set all modes back the way they found them.
>
>Not that it DOES, of course, but it should.

After someone (Felix Gaethgens, if i remember well) complained about
the 8-bit sillyness, i've just had a look into the related code
that time. All i found it's terribly. Kinda spagghetti, i know,
each switch between raw and cooked mode causes the mode being reset
to 7 bit, but there wasn't an obvious reason *why* this occurred.
The code emulating the old tty mode (tt-compat, sgtty()) is horribly
broken, but most older BSD applications use it (including curses).
Best would be a total rewrite from scratch:-), from some spec's
regarding the new termios interface. Btw., does you American folks
*really* need 7-bit mode? Even the simplest uucp connection requires
an 8-bit clean interface...

	J"org
-- 
J"org Wunsch, ham: dl8dtl    : joerg_wunsch@uriah.sax.de
If anything can go wrong...  :   ...or:
     .o .o                   : joerg@sax.de,wutcd@hadrian.hrz.tu-chemnitz.de,
       <_      ... IT WILL!  : joerg_wunsch@tcd-dresden.de