Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site umcp-cs.UUCP Path: utzoo!linus!philabs!cmcl2!seismo!umcp-cs!chris From: chris@umcp-cs.UUCP (Chris Torek) Newsgroups: net.unix-wizards Subject: Re: laser printers and 8 bit serial Message-ID: <4093@umcp-cs.UUCP> Date: Sat, 16-Mar-85 04:15:54 EST Article-I.D.: umcp-cs.4093 Posted: Sat Mar 16 04:15:54 1985 Date-Received: Sun, 17-Mar-85 22:35:38 EST References: <6500002@hp-sdd.UUCP> <84@mit-athena.UUCP> <4256@ucla-cs.ARPA> Organization: U of Maryland, Computer Science Dept., College Park, MD Lines: 73 Keywords: tandem, raw This has all been gone over several times, but here it is again in condensed format. (Reference cards anyone?) SUMMARY OF 4.2BSD TTY DRIVER FLAGS ---------------------------------- TANDEM 4.2 will send ^S to terminal when 4.2's buffers get full (use only in CBREAK or RAW, or you'll never get ^Q!) CBREAK 4.2 will pass characters back to programs one at a time LCASE 4.2 will simulate lowercase on uppercase only terminal ECHO 4.2 will echo your typing CRMOD 4.2 will print "\r\n" for "\n" and will accept both "\r" and "\n" as end of line RAW none of terminal's output is special in any way to 4.2 (in particular, 4.2 will hand ^S/^Q to user programs regardless of other stty settings) ODDP 4.2 will accept odd parity and (iff EVENP is off) generate odd parity EVENP 4.2 will accept even parity and will generate even parity ANYP 4.2 will accept any parity and probably generate even parity NLDELAY 4.2 will use 1 of 4 time delays after "\n" (control J): NL0 => none; NL1,NL2,NL3 increasing TBDELAY 4.2 will use 1 of 3 time delays after "\t", or (if set to XTABS) will expand tabs to right number of spaces: TAB0 => none; TAB1, TAB2 increasing CRDELAY 4.2 will use 1 of 4 time delays after "\r" (control M): CR0 => none; CR1,CR2,CR3 increasing VTDELAY 4.2 will use 1 of 2 time delays after "\f": FF0 => none, FF1 => some BSDELAY 4.2 will use 1 of 2 time delays after "\b": BS0 => none, BS1 => some ALLDELAY just == NLDELAY|TBDELAY|CRDELAY|VTDELAY|BSDELAY CRTBS 4.2 will print "\b" character to back up cursor on CRT when terminal sends "erase" character (usually DEL or BS or #) PRTERA 4.2 will print original text inside \/ to "erase" on printer when terminal sends "erase" character CRTERA 4.2 will print "\b \b" to remove text from CRT when terminal sends "erase" character TILDE 4.2 will print backquote instead of tilde (hazeltine kludge) MDMBUF 4.2 will treat carrier drop as ^S, raise as ^Q. BEWARE: depends on driver; standard DZ driver does not support it LITOUT 4.2 will send user's 8 bit bytes from write() syscalls directly to terminal (no parity, no \n=>\r\n etc). BUG: depends on driver; (re)setting baud rate typically necessary to force LITOUT to take effect TOSTOP 4.2 will stop background processes that attempt to write to terminal (sends SIGTTOU; comment is wrong) FLUSHO 4.2 is flushing output to terminal (^O key normally toggles) NOHANG 4.2 won't send SIGHUP when carrier drops CRTKIL 4.2 will print "\b \b" to remove line from CRT when terminal sends "line kill" character (usually ^U or ^X or @) CTLECH 4.2 will echo control characters as ^, char (^A, ^D etc) PENDIN 4.2 will retype input line on next char from terminal DECCTQ 4.2 will only restart output for ^Q after ^S (other input accepted but not yet echoed) NOFLSH 4.2 will not flush output on signals NOTES ----- All of these are settable via stty(1) and TIOCGET/TIOCSET ioctl(2)s. Some of these have aliases starting with L; these aliases are for use with TIOCLGET, TIOCLSET, etc. This is not a comprehensive list of ioctls. I haven't included local additions for ^T, and hope I haven't included any other local changes. -- In-Real-Life: Chris Torek, Univ of MD Comp Sci Dept (+1 301 454 4251) UUCP: {seismo,allegra,brl-bmd}!umcp-cs!chris CSNet: chris@umcp-cs ARPA: chris@maryland