Skip to content

Commit

Permalink
Merge pull request #77 from ktock/cfmakeraw
Browse files Browse the repository at this point in the history
tc_unix.go: Make cfmakeraw compatible to Linux
  • Loading branch information
estesp authored Jul 6, 2023
2 parents 4df55bb + e50141f commit 8f6c4e4
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 8f6c4e4

Please sign in to comment.