Skip to content

Commit 8f6c4e4

Browse files
authored
Merge pull request #77 from ktock/cfmakeraw
tc_unix.go: Make cfmakeraw compatible to Linux
2 parents 4df55bb + e50141f commit 8f6c4e4

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)