From afe0671bd18628a9e5ba3d89179d56b31f702a2d Mon Sep 17 00:00:00 2001 From: Josh Wilson Date: Wed, 5 Oct 2016 11:24:58 -0700 Subject: [PATCH] Force input stream ANSI emulation for ConsoleZ This performs a similar check to the `"ConEmuANSI"` check that was recently added to enable arrow keys navigation in docker container terminals. Signed-off-by: Josh Wilson Upstream-commit: c0a5772668c5a2cb6d17a6b5907fc3eb08d18cc7 Component: engine --- components/engine/pkg/term/term_windows.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/engine/pkg/term/term_windows.go b/components/engine/pkg/term/term_windows.go index 11a16fdea8..a91f07e482 100644 --- a/components/engine/pkg/term/term_windows.go +++ b/components/engine/pkg/term/term_windows.go @@ -71,8 +71,8 @@ func StdStreams() (stdIn io.ReadCloser, stdOut, stdErr io.Writer) { } } - if os.Getenv("ConEmuANSI") == "ON" { - // The ConEmu terminal emulates ANSI on output streams well. + if os.Getenv("ConEmuANSI") == "ON" || os.Getenv("ConsoleZVersion") != "" { + // The ConEmu and ConsoleZ terminals emulate ANSI on output streams well. emulateStdin = true emulateStdout = false emulateStderr = false