From a0f1e21ff939612898d63ae2245e47dffc1a8153 Mon Sep 17 00:00:00 2001 From: rsc Date: Tue, 20 Apr 2004 02:03:38 +0000 Subject: make things work on SunOS --- src/cmd/9term/SunOS.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/cmd/9term') diff --git a/src/cmd/9term/SunOS.c b/src/cmd/9term/SunOS.c index efc2a979..12f64b85 100644 --- a/src/cmd/9term/SunOS.c +++ b/src/cmd/9term/SunOS.c @@ -60,14 +60,14 @@ updatewinsize(int row, int col, int dx, int dy) static struct termios ttmode; int -israw(int fd) +isecho(int fd) { if(tcgetattr(fd, &ttmode) < 0) fprint(2, "tcgetattr: %r\n"); if(debug) fprint(2, "israw %c%c\n", ttmode.c_lflag&ICANON ? 'c' : '-', ttmode.c_lflag&ECHO ? 'e' : '-'); - return !(ttmode.c_lflag&(ICANON|ECHO)); + return (ttmode.c_lflag&(ICANON|ECHO)); } int -- cgit v1.2.3