Return to BSD News archive
Newsgroups: comp.os.386bsd.development Path: sserve!newshost.anu.edu.au!munnari.oz.au!constellation!convex!convex!cs.utexas.edu!utnut!torn!nott!cunews!revcan!latour!mcr From: mcr@Sandelman.OCUnix.on.ca (Michael Richardson) Subject: Re: Need your opinion (TTYDEF 8-bit clean state) Message-ID: <1993Jun15.051625.29309@Sandelman.OCUnix.on.ca> Organization: Sandelman Software Works, Debugging Department, Ottawa, ON References: <1valpq$i3i@sax.sax.de> <JKH.93Jun12170918@whisker.lotus.ie> <C8KBqG.9oD@sugar.NeoSoft.COM> Date: Tue, 15 Jun 1993 05:16:25 GMT Lines: 31 In article <C8KBqG.9oD@sugar.NeoSoft.COM> peter@NeoSoft.com (Peter da Silva) writes: >In article <JKH.93Jun12170918@whisker.lotus.ie> jkh@whisker.lotus.ie (Jordan K. Hubbard) writes: >> I support this - DEC has done much the same with their tty drivers in >> Ultrix - it comes up in 8 bit, and it stays that way until you decide >> otherwise. > >They just change the default, or did they fix the applications to restore >stuff the way they found it? I dunno, about DEC, but I have a suggestion: a) make the CSIZE and PARENB/PARODD bits in control mode a no-op, default is CS8 b) do a console printf() if an application tries to set other than CS8. (This way we can *find* those bloody applications that mess up) c) provide a `magic' option to stty that really sets CS7 (if you really, really need it) d) make all of this configurable on a per-port basis from the kernel config file. [and if you think having vi reset your modes to CS7 is bad. My current build of tcsh on a 3/60 likes to set all my special characters to ^C now and then!] -- :!mcr!: | The postmaster never | So much mail, Michael Richardson | resolves twice. | so little time. HOME: mcr@sandelman.ocunix.on.ca Bell: (613) 798-0698 SCHOOL: mcr@physics.carleton.ca