diff options
author | Brent Baude <bbaude@redhat.com> | 2020-06-26 16:22:04 -0500 |
---|---|---|
committer | Matthew Heon <matthew.heon@pm.me> | 2020-07-06 13:41:39 -0400 |
commit | de6a8609a81472b5be786c7404576905ebb981fb (patch) | |
tree | 0e3062aa8bfe833e65c3c903ed3a6a71b1057473 /pkg/terminal/console_unix.go | |
parent | 1c02d5ab890ba7de6d0ad0603438107e086c18b7 (diff) | |
download | podman-de6a8609a81472b5be786c7404576905ebb981fb.tar.gz podman-de6a8609a81472b5be786c7404576905ebb981fb.tar.bz2 podman-de6a8609a81472b5be786c7404576905ebb981fb.zip |
Set console mode for windows
Windows terminal handling is different than darwin and linux. It needs to have the terminal mode set to enable virtual terminal processing. This allows colors and other things to work.
Signed-off-by: Brent Baude <bbaude@redhat.com>
<MH: Tweaked imports to compile>
Signed-off-by: Matt Heon <matthew.heon@pm.me>
Diffstat (limited to 'pkg/terminal/console_unix.go')
-rw-r--r-- | pkg/terminal/console_unix.go | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/pkg/terminal/console_unix.go b/pkg/terminal/console_unix.go new file mode 100644 index 000000000..6eee6aa2f --- /dev/null +++ b/pkg/terminal/console_unix.go @@ -0,0 +1,8 @@ +// +build !windows + +package terminal + +// SetConsole for non-windows environments is a no-op +func SetConsole() error { + return nil +} |