tty: set termios ISIG = false and PARMRK = false

When changing to the new zig termios api, I missed setting two flags.
This left SIGINTs being sent to the terminal and applications not able
to handle ctrl+c.
This commit is contained in:
Tim Culverhouse 2024-02-26 18:26:12 -06:00
parent 4069c83092
commit f84bad6420

View file

@ -224,6 +224,7 @@ pub fn makeRaw(fd: os.fd_t) !os.termios {
// see termios(3)
raw.iflag.IGNBRK = false;
raw.iflag.BRKINT = false;
raw.iflag.PARMRK = false;
raw.iflag.ISTRIP = false;
raw.iflag.INLCR = false;
raw.iflag.IGNCR = false;
@ -235,6 +236,7 @@ pub fn makeRaw(fd: os.fd_t) !os.termios {
raw.lflag.ECHO = false;
raw.lflag.ECHONL = false;
raw.lflag.ICANON = false;
raw.lflag.ISIG = false;
raw.lflag.IEXTEN = false;
raw.cflag.CSIZE = .CS8;