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 @@ -28,6 +28,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[]) { @@ -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");