1
0
mirror of https://github.com/openbsd/src.git synced 2025-01-10 06:47:55 -08:00

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.
This commit is contained in:
millert 2016-01-07 18:25:52 +00:00
parent b22b812bde
commit 7146b7ce3e

View File

@ -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){