From dfb2f92583a5797b1ee8cdf29399dc29b7f3c6d3 Mon Sep 17 00:00:00 2001 From: Brent Baude Date: Fri, 26 Jun 2020 16:22:04 -0500 Subject: 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 --- pkg/terminal/console_unix.go | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 pkg/terminal/console_unix.go (limited to 'pkg/terminal/console_unix.go') 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 +} -- cgit v1.2.3-54-g00ecf