aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/9term
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2004-04-20 02:03:38 +0000
committerrsc <devnull@localhost>2004-04-20 02:03:38 +0000
commita0f1e21ff939612898d63ae2245e47dffc1a8153 (patch)
tree581f62db3bad2c54d60cb54b6e577787f55071af /src/cmd/9term
parente637c944febf271252e59742aa108d6e0a527eb7 (diff)
downloadplan9port-a0f1e21ff939612898d63ae2245e47dffc1a8153.tar.gz
plan9port-a0f1e21ff939612898d63ae2245e47dffc1a8153.tar.bz2
plan9port-a0f1e21ff939612898d63ae2245e47dffc1a8153.zip
make things work on SunOS
Diffstat (limited to 'src/cmd/9term')
-rw-r--r--src/cmd/9term/SunOS.c4
1 files changed, 2 insertions, 2 deletions
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