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:
Michael Crosby
2017-09-25 11:58:12 -04:00
parent bd1f89b73f
commit ed811896ed
5 changed files with 44 additions and 29 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)
}