forked from TrueCloudLab/restic
80564a9bc9
mintty on windows always uses pipes to connect stdout between processes and for the terminal output. The previous implementation always assumed that stdout connected to a pipe means that stdout is displayed on a mintty terminal. However, this detection breaks when using pipes to connect processes and for powershell which uses pipes when redirecting to a file. Now the pipe filename is queried and matched against the pattern used by msys / cygwin when connected to the terminal. In all other cases assume that a pipe is just a regular pipe. |
||
---|---|---|
.. | ||
background.go | ||
background_linux.go | ||
background_linux_test.go | ||
status.go | ||
status_test.go | ||
terminal_posix.go | ||
terminal_unix.go | ||
terminal_windows.go |