summaryrefslogtreecommitdiffstats
path: root/vendor/github.com/gdamore/tcell/v2/nonblock_bsd.go
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2021-06-15 08:12:38 +1000
committerJesse Duffield <jessedduffield@gmail.com>2021-06-15 08:12:38 +1000
commit3dd88d613802dfb5c85282f149e311c1523dbc99 (patch)
tree58d7e8d8e966d0c040138191accc67f10b15e168 /vendor/github.com/gdamore/tcell/v2/nonblock_bsd.go
parentce7cbe58a045b9a7efe5fb48bb75eaa8c8593af3 (diff)
bump dependencies
Diffstat (limited to 'vendor/github.com/gdamore/tcell/v2/nonblock_bsd.go')
-rw-r--r--vendor/github.com/gdamore/tcell/v2/nonblock_bsd.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/vendor/github.com/gdamore/tcell/v2/nonblock_bsd.go b/vendor/github.com/gdamore/tcell/v2/nonblock_bsd.go
index ffe5caf85..28fd4644c 100644
--- a/vendor/github.com/gdamore/tcell/v2/nonblock_bsd.go
+++ b/vendor/github.com/gdamore/tcell/v2/nonblock_bsd.go
@@ -26,6 +26,7 @@ import (
// tcSetBufParams is used by the tty driver on UNIX systems to configure the
// buffering parameters (minimum character count and minimum wait time in msec.)
+// This also waits for output to drain first.
func tcSetBufParams(fd int, vMin uint8, vTime uint8) error {
_ = syscall.SetNonblock(fd, true)
tio, err := unix.IoctlGetTermios(fd, unix.TIOCGETA)
@@ -34,7 +35,7 @@ func tcSetBufParams(fd int, vMin uint8, vTime uint8) error {
}
tio.Cc[unix.VMIN] = vMin
tio.Cc[unix.VTIME] = vTime
- if err = unix.IoctlSetTermios(fd, unix.TIOCSETA, tio); err != nil {
+ if err = unix.IoctlSetTermios(fd, unix.TIOCSETAW, tio); err != nil {
return err
}
return nil