Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!ucbvax!agate!dog.ee.lbl.gov!elf.ee.lbl.gov!torek From: torek@elf.ee.lbl.gov (Chris Torek) Newsgroups: comp.unix.questions Subject: Re: stty -g output mapping to stty -a output Message-ID: <14013@dog.ee.lbl.gov> Date: 7 Jun 91 06:23:14 GMT References: <27123@adm.brl.mil> Reply-To: torek@elf.ee.lbl.gov (Chris Torek) Organization: Lawrence Berkeley Laboratory, Berkeley Lines: 24 X-Local-Date: Thu, 6 Jun 91 23:23:14 PDT In article djm@eng.umd.edu (David J. MacKenzie) writes: >stty -g is just a hex dump of the current values of the tty's `struct >termio[s]' members, in order, omitting c_line. Separated by colons, >of course. Oh? % stty -g -gfmt:iflag=2b22:oflag=7:cflag=5a00:lflag=5cb:cc=4,377,377,10,27,30,22,377,3,34,32,31,21,23,26,17,1,0,24,377:ispeed=9600:ospeed=9600: % The output from `stty -g' is entirely private to the implementation, and may change from moment to moment. The only constraint on it is that a later stty with that output should restore the terminal modes (i.e., it has to contain enough information, in some arbitrary format, to do this). This is at least the second `stty -g' format that has been used on this machine. (A third produces `Bus error (core dumped)' at the moment, but never mind that :-) .) -- In-Real-Life: Chris Torek, Lawrence Berkeley Lab CSE/EE (+1 415 486 5427) Berkeley, CA Domain: torek@ee.lbl.gov