[net.unix-wizards] System III tty driver bug

sch@MITRE-BEDFORD@sri-unix (06/27/82)

Date: Wed Jun 16 16:12:50 1982
A bug exists in the tty driver, it is impossible to use no delay mode when
the tty is character at a time mode.  I have not fixed the problem yet,
but the bug appears to be in tty.c .  In System III it is possible to place
the terminal in no delay mode (either by a fcntl, or open).  If the terminal
is placed in character at a time mode, (ICANON not set), then the driver
reads characters from the raw rather than the canonical queue.  The bug is
because the driver always checks the canonical queue when testing for N_DELAY.
In character mode, the canonical queue will always be empty!!!

Has anyone fixed this bug?  It is important for programs which want to
check for characters while running, (like the RAND editor).