From c9f6e6de378d385fdf46f40e157f9f65c10255e7 Mon Sep 17 00:00:00 2001 From: Lei Jitang Date: Fri, 17 Apr 2015 15:28:12 +0800 Subject: [PATCH] Fix weird terminal output format Signed-off-by: Lei Jitang --- term/tc_linux_cgo.go | 1 + 1 file changed, 1 insertion(+) 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 }