kbdfs: kill input buffer on interrupt key
This commit is contained in:
parent
01d28b9d89
commit
663aff7fb2
1 changed files with 5 additions and 4 deletions
|
@ -564,13 +564,14 @@ lineproc(void *aux)
|
|||
do {
|
||||
recv(cook, &r);
|
||||
switch(r){
|
||||
case Kdel:
|
||||
if(notefd < 0)
|
||||
continue;
|
||||
write(notefd, "interrupt", 9);
|
||||
/* no break */
|
||||
case '\0': /* flush */
|
||||
nr = 0;
|
||||
continue;
|
||||
case Kdel:
|
||||
if(notefd >= 0)
|
||||
write(notefd, "interrupt", 9);
|
||||
continue;
|
||||
case Kbs: /* ^H: erase character */
|
||||
case Knack: /* ^U: erase line */
|
||||
case Ketb: /* ^W: erase word */
|
||||
|
|
Loading…
Reference in a new issue