Skip to content

Commit

Permalink
fix(term): a file can read/write/close
Browse files Browse the repository at this point in the history
  • Loading branch information
aymanbagabas committed May 10, 2024
1 parent 599eee7 commit e66de7a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion term/terminal.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit e66de7a

Please sign in to comment.