do not turn post-processing on for linux-cgo term
- fixes #15373 - remove set OPOST output flag for termios - remove latent os.Exit call Signed-off-by: Morgan Bauer <mbauer@us.ibm.com>
This commit is contained in:
parent
a8cc8fea55
commit
8f4a95e88f
2 changed files with 0 additions and 2 deletions
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
|
@ -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)
|
|
||||||
}()
|
}()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue