Text File

Aphs.115 fa.unix-wizards utzoo!duke!phs!dennis Tue Jun 2 15:44:14 1981 tty parity The reflection of the parity error to the user is the non-echo of the input character. It would be trivial to alter the drivers to echo a BEL or whatever you want; in fact, this character can be added to the special character table (struct tc). A multiple- character string (like <\007\007PARITY REENTER LINE\007\007\R\N ERROR --> to quote a nasty system) would be more diffi- cult.

Note that this would entail adding the special character to the output queue in the interrupt routine; something that isn't very pretty, but certainly isn't difficult (you have the pointer to the tty structure already in hand, so to speak). You can add as much intelligence as you want (ie, checking the character count, checking echo status, and so forth), but be sensible.

----------------------------------------------------------------- gopher://quux.org/ conversion by John Goerzen <jgoerzen@complete.org> of http://communication.ucsd.edu/A-News/

This Usenet Oldnews Archive article may be copied and distributed freely, provided:

1. There is no money collected for the text(s) of the articles.

2. The following notice remains appended to each copy:

The Usenet Oldnews Archive: Compilation Copyright (C) 1981, 1996 Bruce Jones, Henry Spencer, David Wiseman.