mirror of
https://github.com/RoBaertschi/tt.git
synced 2025-06-03 10:43:28 +00:00
removed carriage return
This commit is contained in:
parent
4554892b6a
commit
dee1914d90
@ -22,7 +22,7 @@ func EnterRawMode() error {
|
|||||||
restore = *termios
|
restore = *termios
|
||||||
termios.Lflag = termios.Lflag &^ (unix.ECHO | unix.ICANON | unix.ISIG | unix.IEXTEN)
|
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.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 {
|
if err := unix.IoctlSetTermios(unix.Stdin, unix.TCSETSF, termios); err != nil {
|
||||||
return err
|
return err
|
||||||
|
Loading…
x
Reference in New Issue
Block a user