Skip to content

Commit

Permalink
tc_unix.go: Make cfmakeraw compatible to Linux
Browse files Browse the repository at this point in the history
Signed-off-by: Kohei Tokunaga <ktokunaga.mail@gmail.com>
  • Loading branch information
ktock committed Jun 20, 2023
1 parent 1b12abd commit e50141f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tc_unix.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ func cfmakeraw(t unix.Termios) unix.Termios {
t.Oflag &^= unix.OPOST
t.Lflag &^= (unix.ECHO | unix.ECHONL | unix.ICANON | unix.ISIG | unix.IEXTEN)
t.Cflag &^= (unix.CSIZE | unix.PARENB)
t.Cflag &^= unix.CS8
t.Cflag |= unix.CS8
t.Cc[unix.VMIN] = 1
t.Cc[unix.VTIME] = 0

Expand Down

0 comments on commit e50141f

Please sign in to comment.