Skip to content

Commit

Permalink
Close handles to /dev/tty
Browse files Browse the repository at this point in the history
  • Loading branch information
junegunn committed May 14, 2024
1 parent d274d09 commit 218843b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/tui/light_unix.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 218843b

Please sign in to comment.