diff --git a/src/functions.php b/src/functions.php index c3b17cc..95cebcb 100644 --- a/src/functions.php +++ b/src/functions.php @@ -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); @@ -97,4 +97,4 @@ function ctrl_key(string $char): int // b1,100,001 (a) & b0,011,111 = b0,000,001 // b1,100,010 (b) & b0,011,111 = b0,000,010 return ord($char) & 0x1f; -} \ No newline at end of file +}