Skip to content

Commit

Permalink
fix(term): make query terminal accept reader/writer instead of file
Browse files Browse the repository at this point in the history
  • Loading branch information
caarlos0 authored and aymanbagabas committed May 3, 2024
1 parent c8de846 commit 36ea203
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions exp/term/terminal.go
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,8 @@ type QueryTerminalFilter func(events []input.Event) bool
// Note: This function will block until the terminal responds or the timeout
// is reached.
func QueryTerminal(
in *os.File,
out *os.File,
in io.Reader,
out io.Writer,
filter QueryTerminalFilter,
query string,
) error {
Expand Down

0 comments on commit 36ea203

Please sign in to comment.