aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/samterm
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2006-02-09 19:43:07 +0000
committerrsc <devnull@localhost>2006-02-09 19:43:07 +0000
commit330e487a1d3e2c65fc1132e8752f95e4fa4857df (patch)
tree154cb1267fe3df3a968fa646fcc6530cfe7629d4 /src/cmd/samterm
parentbafbb3918af74080aebc6efeb722dae9a49462b7 (diff)
downloadplan9port-330e487a1d3e2c65fc1132e8752f95e4fa4857df.tar.gz
plan9port-330e487a1d3e2c65fc1132e8752f95e4fa4857df.tar.bz2
plan9port-330e487a1d3e2c65fc1132e8752f95e4fa4857df.zip
ignore interrupts
Diffstat (limited to 'src/cmd/samterm')
-rw-r--r--src/cmd/samterm/main.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/cmd/samterm/main.c b/src/cmd/samterm/main.c
index 3f232aab..bf0d9a55 100644
--- a/src/cmd/samterm/main.c
+++ b/src/cmd/samterm/main.c
@@ -29,6 +29,14 @@ int autoindent;
#define chording 0 /* code here for reference but it causes deadlocks */
void
+notifyf(void *a, char *msg)
+{
+ if(strcmp(msg, "interrupt") == 0)
+ noted(NCONT);
+ noted(NDFLT);
+}
+
+void
threadmain(int argc, char *argv[])
{
int i, got, scr, w;
@@ -51,6 +59,8 @@ threadmain(int argc, char *argv[])
if(open("/dev/tty", OWRITE) < 0)
open("/dev/null", OWRITE);
+ notify(notifyf);
+
if(protodebug) print("getscreen\n");
getscreen(argc, argv);
if(protodebug) print("iconinit\n");