summaryrefslogtreecommitdiffstats
path: root/src/cmd/9term/SunOS.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd/9term/SunOS.c')
-rw-r--r--src/cmd/9term/SunOS.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/cmd/9term/SunOS.c b/src/cmd/9term/SunOS.c
index 467f0d23..77ef2823 100644
--- a/src/cmd/9term/SunOS.c
+++ b/src/cmd/9term/SunOS.c
@@ -95,3 +95,12 @@ setecho(int fd, int newe)
}
return old;
}
+
+int
+getintr(int fd)
+{
+ if((tcgetattr(fd, &ttmode) < 0)
+ return 0x7F;
+ return ttmode.c_cc[VINTR];
+}
+