raw/cooked single char i/o
chris at umcp-cs.UUCP
chris at umcp-cs.UUCP
Fri Jun 17 04:37:58 AEST 1983
Now for my two cent's worth: I'd like a full set of options, like so:
IN_8BIT /* 8 bit input */
OUT_8BIT /* 8 bit output */
ECHO /* echo all input */
CTLECHO /* echo control chars as ^x */
CBREAK /* wake up on all input */
the usual tab, CR, NL, FF delay/expansion
ECHONL /* Echo NL after CR, for half-duplex with ~ECHO */
BREAKNULL /* Change BREAK to null instead of sending signal */
BREAKIGN /* Ignore BREAK completely */
and all the special characters in one structure. No need for a RAW
mode; it's just IN_8BIT|OUT_8BIT|CBREAK|BREAKNULL, with all the special
characters turned off. The reason for BREAKNULL and BREAKIGN? Well,
BREAKNULL is for those programs that look for NULL, in RAW, as a change-
speed code (i.e. getty). BREAKIGN is for noisy lines, where you get
spurious BREAKs, which are currently nearly impossible to get around.
If you set neither, then BREAK should generate SIGINT in ANY mode.
- Chris
--
UUCP: {seismo,allegra,brl-bmd}!umcp-cs!chris
CSNet: chris at umcp-cs
ARPA: chris.umcp-cs at UDel-Relay
More information about the Comp.unix.wizards
mailing list