github.com/gunjan5/docker@v1.8.2/daemon/execdriver/windows/ttyconsole.go (about)

     1  // +build windows
     2  
     3  package windows
     4  
     5  import (
     6  	"github.com/microsoft/hcsshim"
     7  )
     8  
     9  // TtyConsole is for when using a container interactively
    10  type TtyConsole struct {
    11  	id        string
    12  	processid uint32
    13  }
    14  
    15  func NewTtyConsole(id string, processid uint32) *TtyConsole {
    16  	tty := &TtyConsole{
    17  		id:        id,
    18  		processid: processid,
    19  	}
    20  	return tty
    21  }
    22  
    23  func (t *TtyConsole) Resize(h, w int) error {
    24  	return hcsshim.ResizeConsoleInComputeSystem(t.id, t.processid, h, w)
    25  }
    26  
    27  func (t *TtyConsole) Close() error {
    28  	return nil
    29  }