Merge pull request #20587 from MHBauer/termfixes

do not turn post-processing on for linux-cgo terminals
This commit is contained in:
Tibor Vass 2016-03-01 11:37:26 -05:00
commit 98943aafae
2 changed files with 0 additions and 2 deletions

View file

@ -27,7 +27,6 @@ func MakeRaw(fd uintptr) (*State, error) {
newState := oldState.termios newState := oldState.termios
C.cfmakeraw((*C.struct_termios)(unsafe.Pointer(&newState))) C.cfmakeraw((*C.struct_termios)(unsafe.Pointer(&newState)))
newState.Oflag = newState.Oflag | C.OPOST
if err := tcset(fd, &newState); err != 0 { if err := tcset(fd, &newState); err != 0 {
return nil, err return nil, err
} }

View file

@ -127,6 +127,5 @@ func handleInterrupt(fd uintptr, state *State) {
go func() { go func() {
_ = <-sigchan _ = <-sigchan
RestoreTerminal(fd, state) RestoreTerminal(fd, state)
os.Exit(0)
}() }()
} }