From 899cb8ee5f6c76d63879331692e612e280c9eeb3 Mon Sep 17 00:00:00 2001 From: Michael Crosby Date: Fri, 2 Jun 2017 12:53:49 -0700 Subject: [PATCH] Set OPOST on bsd Signed-off-by: Michael Crosby Upstream-commit: 17ec46a24316f59c808c112e3ca46d7c442a785a Component: engine --- components/engine/pkg/term/termios_bsd.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/engine/pkg/term/termios_bsd.go b/components/engine/pkg/term/termios_bsd.go index c47341e873..9fdc720f25 100644 --- a/components/engine/pkg/term/termios_bsd.go +++ b/components/engine/pkg/term/termios_bsd.go @@ -27,7 +27,7 @@ func MakeRaw(fd uintptr) (*State, error) { newState := oldState.termios newState.Iflag &^= (unix.IGNBRK | unix.BRKINT | unix.PARMRK | unix.ISTRIP | unix.INLCR | unix.IGNCR | unix.ICRNL | unix.IXON) - newState.Oflag &^= unix.OPOST + newState.Oflag |= unix.OPOST newState.Lflag &^= (unix.ECHO | unix.ECHONL | unix.ICANON | unix.ISIG | unix.IEXTEN) newState.Cflag &^= (unix.CSIZE | unix.PARENB) newState.Cflag |= unix.CS8