From e66de7a5153151cd40ddc80d8a790d97e180780b Mon Sep 17 00:00:00 2001 From: Ayman Bagabas Date: Fri, 10 May 2024 14:12:45 -0400 Subject: [PATCH] fix(term): a file can read/write/close --- term/terminal.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/term/terminal.go b/term/terminal.go index b88f5e17..09d83f9a 100644 --- a/term/terminal.go +++ b/term/terminal.go @@ -9,8 +9,10 @@ import ( "github.com/charmbracelet/x/input" ) -// File represents a file that has a file descriptor. +// File represents a file that has a file descriptor and can be read from, +// written to, and closed. type File interface { + io.ReadWriteCloser Fd() uintptr }