Windows: OCI process struct convergence

Signed-off-by: John Howard <jhoward@microsoft.com>
Upstream-commit: 53774423ff0db50cb0934e7b1e5ce507363e8147
Component: engine
This commit is contained in:
John Howard
2016-09-14 11:55:07 -07:00
parent 13bd68497d
commit 92d37247b3
10 changed files with 47 additions and 17 deletions

View File

@ -48,7 +48,7 @@ func (o *OutStream) RestoreTerminal() {
}
// GetTtySize returns the height and width in characters of the tty
func (o *OutStream) GetTtySize() (int, int) {
func (o *OutStream) GetTtySize() (uint, uint) {
if !o.isTerminal {
return 0, 0
}
@ -59,7 +59,7 @@ func (o *OutStream) GetTtySize() (int, int) {
return 0, 0
}
}
return int(ws.Height), int(ws.Width)
return uint(ws.Height), uint(ws.Width)
}
// NewOutStream returns a new OutStream object from a Writer