Skip to content

Commit e50141f

Browse files
committed
tc_unix.go: Make cfmakeraw compatible to Linux
Signed-off-by: Kohei Tokunaga <[email protected]>
1 parent 1b12abd commit e50141f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tc_unix.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ func cfmakeraw(t unix.Termios) unix.Termios {
8484
t.Oflag &^= unix.OPOST
8585
t.Lflag &^= (unix.ECHO | unix.ECHONL | unix.ICANON | unix.ISIG | unix.IEXTEN)
8686
t.Cflag &^= (unix.CSIZE | unix.PARENB)
87-
t.Cflag &^= unix.CS8
87+
t.Cflag |= unix.CS8
8888
t.Cc[unix.VMIN] = 1
8989
t.Cc[unix.VTIME] = 0
9090

0 commit comments

Comments
 (0)