1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/daemon/execdriver/windows/ttyconsole.go
John Howard bd30d27636 Windows: Remove erroneous comment
Signed-off-by: John Howard <jhoward@microsoft.com>
2015-07-21 14:25:08 -07:00

29 lines
514 B
Go

// +build windows
package windows
import (
"github.com/microsoft/hcsshim"
)
// TtyConsole is for when using a container interactively
type TtyConsole struct {
id string
processid uint32
}
func NewTtyConsole(id string, processid uint32) *TtyConsole {
tty := &TtyConsole{
id: id,
processid: processid,
}
return tty
}
func (t *TtyConsole) Resize(h, w int) error {
return hcsshim.ResizeConsoleInComputeSystem(t.id, t.processid, h, w)
}
func (t *TtyConsole) Close() error {
return nil
}