Update console dep to 84eeaae905fa414d03e07bcd6c8d
This change removes the ClearONLCR from the console package providing a console with the default settings from the console package. Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
This commit is contained in:
10
vendor/github.com/containerd/console/console.go
generated
vendored
10
vendor/github.com/containerd/console/console.go
generated
vendored
@@ -44,7 +44,13 @@ type WinSize struct {
|
||||
|
||||
// Current returns the current processes console
|
||||
func Current() Console {
|
||||
return newMaster(os.Stdin)
|
||||
c, err := ConsoleFromFile(os.Stdin)
|
||||
if err != nil {
|
||||
// stdin should always be a console for the design
|
||||
// of this function
|
||||
panic(err)
|
||||
}
|
||||
return c
|
||||
}
|
||||
|
||||
// ConsoleFromFile returns a console using the provided file
|
||||
@@ -52,5 +58,5 @@ func ConsoleFromFile(f *os.File) (Console, error) {
|
||||
if err := checkConsole(f); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return newMaster(f), nil
|
||||
return newMaster(f)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user