Merge pull request #12471 from coolljt0725/fix_weird_output_format
Fix weird terminal output format
This commit is contained in:
commit
501c2916c4
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue