From 218843b9f1466e179555fca668c93c7e81e88a71 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Tue, 14 May 2024 21:49:47 +0900 Subject: [PATCH] Close handles to /dev/tty --- src/tui/light_unix.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/tui/light_unix.go b/src/tui/light_unix.go index da675aa..f153978 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) {