mirror of
https://github.com/9fans/plan9port.git
synced 2025-01-12 11:10:07 +00:00
Try to be more clever about re-enabling terminal echo.
From Axel Belinfante.
This commit is contained in:
parent
a87638642c
commit
8773b4b238
1 changed files with 2 additions and 1 deletions
|
@ -1021,7 +1021,8 @@ consread(void)
|
|||
s = setecho(sfd, 0);
|
||||
if(write(rcfd, buf, n) < 0)
|
||||
exits(0);
|
||||
setecho(sfd, s);
|
||||
if(s)
|
||||
setecho(sfd, s);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue