stdconsole.go 527 B

123456789101112131415161718192021222324
  1. // +build windows
  2. package windows
  3. // StdConsole is for when using a container non-interactively
  4. type StdConsole struct {
  5. }
  6. // NewStdConsole returns a new StdConsole struct.
  7. func NewStdConsole() *StdConsole {
  8. return &StdConsole{}
  9. }
  10. // Resize implements Resize method of Terminal interface.
  11. func (s *StdConsole) Resize(h, w int) error {
  12. // we do not need to resize a non tty
  13. return nil
  14. }
  15. // Close implements Close method of Terminal interface.
  16. func (s *StdConsole) Close() error {
  17. // nothing to close here
  18. return nil
  19. }