pjh@mccc.UUCP (Peter J. Holsberg) (01/23/88)
SysVr3.0 on a 3B2/400 My docs for stty(1) say: "sane resets all modes to some reasonable values." But, nowhere does it say what those reasonable values are, nor why they are considered reasonable. Can anyone help? Thanks. -- Peter Holsberg UUCP: {rutgers!}princeton!mccc!pjh Technology Division CompuServe: 70240,334 Mercer College GEnie: PJHOLSBERG Trenton, NJ 08690 Voice: 1-609-586-4800
lm@arizona.edu (Larry McVoy) (01/25/88)
In article <145@mccc.UUCP> pjh@mccc.UUCP (Peter J. Holsberg) writes: > "sane resets all modes to some reasonable values." > >But, nowhere does it say what those reasonable values are, nor why they >are considered reasonable. Can anyone help? Thanks. Well, try this: $ stty -a # or -all or everything or whatever it is $ stty sane $ stty -a # or -all or everything or whatever it is and then stare at the differences. It usually sets things up similar to the way it "used to be". Like @ and # as editing chars, DEL as intr, etc. -- Larry McVoy lm@arizona.edu or ...!{uwvax,sun}!arizona.edu!lm Use the force - read the source.
chute@chutepc.UUCP (Chris Chute MD) (01/25/88)
In article <145@mccc.UUCP>, pjh@mccc.UUCP (Peter J. Holsberg) writes: > ... "sane resets all modes to some reasonable values." > But, nowhere does it say what those reasonable values are, nor why they > are considered reasonable. Can anyone help? Thanks. I don't mean to be droll, but we scientific types would just try it and then inquire about what stty settings we end up with. Cheers, Chris Chute M.D. IntN: chute@hscfvax.harvard.edu Harvard School of Public Health UUCP: chute@chutepc.uucp Department of Epidemiology BitN: chute@harvspha.bitnet 677 Huntington Ave Voice: (617)732-1480 Boston, MA 02115 Data: (617)732-1843
rjd@occrsh.ATT.COM (01/26/88)
>SysVr3.0 on a 3B2/400 > >My docs for stty(1) say: > > "sane resets all modes to some reasonable values." > >But, nowhere does it say what those reasonable values are, nor why they >are considered reasonable. Can anyone help? Thanks. Ahh, this is an EASY one (at least the first question - your guess is as good as mine as to the reason why).... # stty sane # stty -a speed 9600 baud; line = 0; intr = DEL; quit = ^|; erase = #; kill = @; eof = ^d; eol = ^`; swtch = ^` parenb -parodd cs7 -cstopb hupcl cread -clocal -loblk -ignbrk brkint ignpar -parmrk -inpck istrip -inlcr -igncr icrnl -iuclc ixon ixany -ixoff isig icanon -xcase echo -echoe echok -echonl -noflsh opost -olcuc onlcr -ocrnl -onocr -onlret -ofill -ofdel It will not change your baud rate, of course, and possibly other things are also untouched, but this was executed on a 3B2 model 400 running 3.1 (which should be the same sane defaults as any other version of AT&T system V). But really, though, you could have done this yourself..... Randy