Update console and golang/sys deps

This bumps the console and golang/sys deps for runc.

The major change is that the console package does not clear ONLCR within
the package and leaves it up to the client to handle this if they
please.

Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
This commit is contained in:
Michael Crosby
2017-09-25 11:53:28 -04:00
parent 79ad714374
commit 9ba16b6d5a
156 changed files with 22588 additions and 9429 deletions

View File

@@ -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)
}