mirror of
https://github.com/rancher/os.git
synced 2025-09-03 07:44:21 +00:00
hashicorp version pkg uses alpha sort on -rc11 metadata - so switching to Josh's catalog pkg
Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>
This commit is contained in:
33
vendor/github.com/tredoe/term/doc.go
generated
vendored
Normal file
33
vendor/github.com/tredoe/term/doc.go
generated
vendored
Normal file
@@ -0,0 +1,33 @@
|
||||
/*
|
||||
Package term provides a portable interface for terminal I/O.
|
||||
|
||||
It manages input and output (I/O) for character-mode applications.
|
||||
The high-level functions enable an application to read from standard input to
|
||||
retrieve keyboard input stored in a terminal's input buffer. They also enable
|
||||
an application to write to standard output or standard error to display text
|
||||
in the terminal's screen buffer. And they also support redirection of standard
|
||||
handles and control of terminal modes for different I/O functionality.
|
||||
|
||||
The low-level functions enable applications to receive detailed input about
|
||||
keyboard. They also enable greater control of output to the screen.
|
||||
|
||||
Usage:
|
||||
|
||||
ter, err := term.New()
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
defer func() {
|
||||
if err = ter.Restore(); err != nil {
|
||||
// Handle error
|
||||
}
|
||||
}()
|
||||
|
||||
Important
|
||||
|
||||
The "go test" tool runs tests with standard input connected to standard
|
||||
error. So whatever program that uses the file descriptor of "/dev/stdin"
|
||||
(which is 0), then it is going to fail. The solution is to use the standard
|
||||
error.
|
||||
*/
|
||||
package term
|
Reference in New Issue
Block a user