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:
parent
4069c83092
commit
f84bad6420
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue