Implement Pty and CloseStdin for windows runtime

Signed-off-by: Kenfe-Mickael Laventure <mickael.laventure@gmail.com>
This commit is contained in:
Kenfe-Mickael Laventure
2017-04-10 13:18:55 -07:00
parent 22a051c88e
commit 918a3ee4a1
7 changed files with 124 additions and 41 deletions

View File

@@ -105,7 +105,7 @@ func (m *master) Reset() error {
}
func (m *master) Size() (WinSize, error) {
info, err := winterm.GetConsoleScreenBufferInfo(m.in)
info, err := winterm.GetConsoleScreenBufferInfo(m.out)
if err != nil {
return WinSize{}, errors.Wrap(err, "unable to get console info")
}