From dc9dfb76ff9375e6368e9e05a40e6dc07b325a8d Mon Sep 17 00:00:00 2001 From: Gibheer Date: Tue, 8 Nov 2022 17:04:09 +0100 Subject: update dependencies --- vendor/golang.org/x/term/term.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'vendor/golang.org/x/term/term.go') diff --git a/vendor/golang.org/x/term/term.go b/vendor/golang.org/x/term/term.go index 69931cc..d592708 100644 --- a/vendor/golang.org/x/term/term.go +++ b/vendor/golang.org/x/term/term.go @@ -7,11 +7,13 @@ // // Putting a terminal into raw mode is the most common requirement: // -// oldState, err := terminal.MakeRaw(0) +// oldState, err := term.MakeRaw(int(os.Stdin.Fd())) // if err != nil { // panic(err) // } -// defer terminal.Restore(0, oldState) +// defer term.Restore(int(os.Stdin.Fd()), oldState) +// +// Note that on non-Unix systems os.Stdin.Fd() may not be 0. package term // State contains the state of a terminal. -- cgit v1.2.3-70-g09d2