diff options
author | 2016-01-07 18:25:52 +0000 | |
---|---|---|
committer | 2016-01-07 18:25:52 +0000 | |
commit | 7146b7ce3e21420d42cd964363eed153492a24c2 (patch) | |
tree | 066a0451c46f7303bae94668552a3f97396a09d5 | |
parent | UTF-8 support for fmt -c. (diff) | |
download | wireguard-openbsd-7146b7ce3e21420d42cd964363eed153492a24c2.tar.xz wireguard-openbsd-7146b7ce3e21420d42cd964363eed153492a24c2.zip |
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.
-rw-r--r-- | games/hack/hack.tty.c | 4 |
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){ |