Try to be more clever about re-enabling terminal echo.
From Axel Belinfante.
This commit is contained in:
parent
a87638642c
commit
8773b4b238
@ -1021,6 +1021,7 @@ consread(void)
|
|||||||
s = setecho(sfd, 0);
|
s = setecho(sfd, 0);
|
||||||
if(write(rcfd, buf, n) < 0)
|
if(write(rcfd, buf, n) < 0)
|
||||||
exits(0);
|
exits(0);
|
||||||
|
if(s)
|
||||||
setecho(sfd, s);
|
setecho(sfd, s);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user