static char sccsid
[] = "@(#)keyboard.c 1.1 (Lucasfilm) %G%";
* Keyboard input support.
if (ch
== 0177 && ferror(stdin
)) {
if (ch
>= 'A' && ch
<= 'Z')
#define mask(s) (1 << ((s) - 1))
int oldmask
= sigblock(mask(SIGALRM
));
if (ch
== _tty
.sg_erase
&& col
> 0) {
if (col
== 1 && line
[0] == ':')
if (ch
== CTRL(w
) && col
> 0) {
while (--col
>= 0 && isspace(line
[col
]))
while (--col
>= 0 && !isspace(line
[col
]))
if (col
== 0 && line
[0] == ':')
if (ch
== _tty
.sg_kill
&& col
> 0) {
} while (col
== 0 || (ch
!= '\r' && ch
!= '\n'));