tTry to be more clever about re-enabling terminal echo. From Axel Belinfante. - plan9port - [fork] Plan 9 from user space | |
git clone git://src.adamsgaard.dk/plan9port | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit 8773b4b2383644cdbfed598bd9596921233b9e62 | |
parent a87638642c99d88a3543e0cd5864c9e54133fbee | |
Author: wkj | |
Date: Mon, 2 Aug 2004 15:21:38 +0000 Try to be more clever about re-enabling terminal echo. From Axel Belinfante. Diffstat: M src/cmd/9term/9term.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) --- | |
diff --git a/src/cmd/9term/9term.c b/src/cmd/9term/9term.c | |
t@@ -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); } } |