浏览代码

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 <josh.wilson@fivestars.com>
Josh Wilson 8 年之前
父节点
当前提交
c0a5772668
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      pkg/term/term_windows.go

+ 2 - 2
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