Improvements to ANSI emulation in conemu
Signed-off-by: John Howard <jhoward@microsoft.com>
This commit is contained in:
parent
a8cc8fea55
commit
80ef4bfbc0
2 changed files with 38 additions and 2 deletions
|
@ -40,8 +40,8 @@ var usingNativeConsole bool
|
|||
func StdStreams() (stdIn io.ReadCloser, stdOut, stdErr io.Writer) {
|
||||
switch {
|
||||
case os.Getenv("ConEmuANSI") == "ON":
|
||||
// The ConEmu shell emulates ANSI well by default.
|
||||
return os.Stdin, os.Stdout, os.Stderr
|
||||
// The ConEmu terminal emulates ANSI on output streams well.
|
||||
return windows.ConEmuStreams()
|
||||
case os.Getenv("MSYSTEM") != "":
|
||||
// MSYS (mingw) does not emulate ANSI well.
|
||||
return windows.ConsoleStreams()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue