diff --git a/term/tc_linux_cgo.go b/term/tc_linux_cgo.go index ae9516c..d47cf59 100644 --- a/term/tc_linux_cgo.go +++ b/term/tc_linux_cgo.go @@ -24,6 +24,7 @@ func MakeRaw(fd uintptr) (*State, error) { newState := oldState.termios C.cfmakeraw((*C.struct_termios)(unsafe.Pointer(&newState))) + newState.Oflag = newState.Oflag | C.OPOST if err := tcset(fd, &newState); err != 0 { return nil, err }