summaryrefslogtreecommitdiff
path: root/games/hack
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2016-01-07 18:25:53 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2016-01-07 18:25:53 +0000
commit2953ac222205aeb1a1617f865871f9b4057f7ab7 (patch)
treee041cf1da17fd5e950cf9de7f0507a0ee4ae9cee /games/hack
parentb294a54bcbed199e16dad0c11ec5aee728bd1deb (diff)
hack expects to be able to read ^Z as a normal character so disable
SUSP in the termios settings. Presumably this is how things worked before the conversion to termios. Fixes suspend/resume in hack.
Diffstat (limited to 'games/hack')
-rw-r--r--games/hack/hack.tty.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/games/hack/hack.tty.c b/games/hack/hack.tty.c
index 5b3644624f6..a3e8641e7e5 100644
--- a/games/hack/hack.tty.c
+++ b/games/hack/hack.tty.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: hack.tty.c,v 1.13 2015/09/27 05:13:11 guenther Exp $ */
+/* $OpenBSD: hack.tty.c,v 1.14 2016/01/07 18:25:52 millert Exp $ */
/*-
* Copyright (c) 1988, 1993
@@ -167,6 +167,8 @@ setftty()
/* be satisfied with one character; no timeout */
curttyb.c_cc[VMIN] = 1;
curttyb.c_cc[VTIME] = 0;
+ /* we need to be able to read ^Z */
+ curttyb.c_cc[VSUSP] = _POSIX_VDISABLE;
change++;
}
if(change){