1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Windows: OCI process struct convergence

Signed-off-by: John Howard <jhoward@microsoft.com>
This commit is contained in:
John Howard 2016-09-14 11:55:07 -07:00
parent 3fd3d28f5f
commit 53774423ff
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