stty -g output mapping to stty -a output

Chris Torek torek at elf.ee.lbl.gov
Fri Jun 7 16:23:14 AEST 1991


In article <DJM.91Jun6202241 at egypt.eng.umd.edu> djm at 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 at ee.lbl.gov



More information about the Comp.unix.questions mailing list