Re: tty_io.c - kbd input

Alan Cox (alan@lxorguk.ukuu.org.uk)
Wed, 12 Feb 1997 21:29:09 +0000 (GMT)


> Chris,
> all I know is from the code too. You probably need to buffer the
> output and wait for '\n' or ' ' to fully understand whether something is just a letter
> or is a word. Also, why not write this as a user program for now (scanning
> /var/log/messages) as that is a lot easier to debug than the kernel?

Another relatively clean solution is to buffer and use a .1 second timeout,
that will mean that single keypresses, single key echos are read right but
messages don't get read character at a time.

Alan