Fix Ctrl-S handling
This commit is contained in:
parent
5642187c0e
commit
6d0074ffd3
@ -23,7 +23,7 @@ function enableRawMode(): void
|
||||
|
||||
// So, the only thing that seems to really matter here is that c_oflag is 0...
|
||||
$termios = clone $original_termios;
|
||||
$termios->c_iflag = $termios->c_iflag & ~(BRKINT | ICRNL | INPCK | ISTRIP | IXON);
|
||||
$termios->c_iflag = 0; //$termios->c_iflag & ~(BRKINT | ICRNL | INPCK | ISTRIP | IXON);
|
||||
$termios->c_oflag = 0; // $termios->c_oflag && ~(OPOST);
|
||||
$termios->c_cflag |= (CS8);
|
||||
$termios->c_lflag = $termios->c_lflag & ~(_ECHO | ICANON | IEXTEN | ISIG);
|
||||
|
Loading…
Reference in New Issue
Block a user