mirror of
https://github.com/RoBaertschi/tt.git
synced 2025-04-15 21:43:30 +00:00
removed carriage return
This commit is contained in:
parent
4554892b6a
commit
dee1914d90
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user