tc_flushc on BSD

Chuck L. Peterson clp at altos86.Altos.COM
Sun Aug 27 14:02:44 AEST 1989


Okay, I give up.  What does tc_flushc (usually '^O') do?
The one use for such a character I can think of would be
to flush output when you accidently run "cat" instead of
"more" when remotely logged in on BSD systems.  ^C (SIGINT)
doesn't stop this output right away, and it really gets annoying.

It seems like some sort of ^C ^O combination would allow you to
immediately regain control of your terminal, but it doesn't.

The purpose for this cannot be simply to inconvenience people like
me who want their programs to read a ^O when in CBREAK mode.
Setting tc_flushc to -1 allows this to be read, by the way.

Chuck L. Peterson
clp at altos.com



More information about the Comp.unix.wizards mailing list