term icon indicating copy to clipboard operation
term copied to clipboard

On git-bash.exe in windows stdout is no terminal?

Open gabyx opened this issue 5 years ago • 1 comments

On windows with git-bash.exe: The following reports false and true

fmt.Print(term.IsTerminal(os.Stdout.Fd()))
fmt.Print(term.IsTerminal(os.Stderr.Fd()))

Do you know why stdout is no terminal but stderr is?

gabyx avatar Oct 13 '20 07:10 gabyx

https://github.com/crossterm-rs/crossterm/issues/168#issuecomment-533238256

gabyx avatar Oct 13 '20 08:10 gabyx