Close handles to /dev/tty

This commit is contained in:
Junegunn Choi 2024-05-14 21:49:47 +09:00
parent d274d093af
commit 218843b9f1
No known key found for this signature in database
GPG Key ID: 254BC280FEF9C627

View File

@ -47,7 +47,8 @@ func (r *LightRenderer) initPlatform() error {
} }
func (r *LightRenderer) closePlatform() { func (r *LightRenderer) closePlatform() {
// NOOP r.ttyin.Close()
r.ttyout.Close()
} }
func openTty(mode int) (*os.File, error) { func openTty(mode int) (*os.File, error) {