summaryrefslogtreecommitdiffstats
path: root/src/tui
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2024-05-14 21:49:47 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2024-05-14 21:49:47 +0900
commit218843b9f1466e179555fca668c93c7e81e88a71 (patch)
tree341ce94efc2b193cba78c058abcf73da333e275e /src/tui
parentd274d093afa667a6ac5ee34579807de195ade784 (diff)
Close handles to /dev/tty
Diffstat (limited to 'src/tui')
-rw-r--r--src/tui/light_unix.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/tui/light_unix.go b/src/tui/light_unix.go
index da675aa2..f153978e 100644
--- a/src/tui/light_unix.go
+++ b/src/tui/light_unix.go
@@ -47,7 +47,8 @@ func (r *LightRenderer) initPlatform() error {
}
func (r *LightRenderer) closePlatform() {
- // NOOP
+ r.ttyin.Close()
+ r.ttyout.Close()
}
func openTty(mode int) (*os.File, error) {