2015-05-27 13:15:14 -07:00
|
|
|
// +build windows
|
|
|
|
|
|
|
|
package windows
|
|
|
|
|
|
|
|
// StdConsole is for when using a container non-interactively
|
|
|
|
type StdConsole struct {
|
|
|
|
}
|
|
|
|
|
2015-08-03 09:54:02 +08:00
|
|
|
// NewStdConsole returns a new StdConsole struct.
|
2015-05-27 13:15:14 -07:00
|
|
|
func NewStdConsole() *StdConsole {
|
|
|
|
return &StdConsole{}
|
|
|
|
}
|
|
|
|
|
2015-08-03 09:54:02 +08:00
|
|
|
// Resize implements Resize method of Terminal interface.
|
2015-05-27 13:15:14 -07:00
|
|
|
func (s *StdConsole) Resize(h, w int) error {
|
|
|
|
// we do not need to resize a non tty
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2015-08-03 09:54:02 +08:00
|
|
|
// Close implements Close method of Terminal interface.
|
2015-05-27 13:15:14 -07:00
|
|
|
func (s *StdConsole) Close() error {
|
|
|
|
// nothing to close here
|
|
|
|
return nil
|
|
|
|
}
|