From 270a33b666ff9a1b3925c5cf53c336b6fab20dc3 Mon Sep 17 00:00:00 2001 From: Michael Crosby Date: Tue, 9 May 2017 16:36:17 -0700 Subject: [PATCH] Add OPOST back to !cgo build for pkg/term Signed-off-by: Michael Crosby --- pkg/term/termios_linux.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/term/termios_linux.go b/pkg/term/termios_linux.go index 22921b6aef..629eb1b13a 100644 --- a/pkg/term/termios_linux.go +++ b/pkg/term/termios_linux.go @@ -35,7 +35,7 @@ func MakeRaw(fd uintptr) (*State, error) { newState := oldState.termios newState.Iflag &^= (syscall.IGNBRK | syscall.BRKINT | syscall.PARMRK | syscall.ISTRIP | syscall.INLCR | syscall.IGNCR | syscall.ICRNL | syscall.IXON) - newState.Oflag &^= syscall.OPOST + newState.Oflag |= syscall.OPOST newState.Lflag &^= (syscall.ECHO | syscall.ECHONL | syscall.ICANON | syscall.ISIG | syscall.IEXTEN) newState.Cflag &^= (syscall.CSIZE | syscall.PARENB) newState.Cflag |= syscall.CS8