removed carriage return

This commit is contained in:
Robin Bärtschi 2025-01-30 11:10:53 +01:00
parent 4554892b6a
commit dee1914d90

View File

@ -22,7 +22,7 @@ func EnterRawMode() error {
restore = *termios
termios.Lflag = termios.Lflag &^ (unix.ECHO | unix.ICANON | unix.ISIG | unix.IEXTEN)
termios.Iflag = termios.Iflag &^ (unix.IXON | unix.ICRNL | unix.BRKINT | unix.INPCK | unix.ISTRIP)
termios.Cflag = termios.Cflag | unix.CS8
termios.Cflag = termios.Cflag | unix.CS8
if err := unix.IoctlSetTermios(unix.Stdin, unix.TCSETSF, termios); err != nil {
return err