mirror of
https://github.com/octoleo/restic.git
synced 2024-11-05 04:47:51 +00:00
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. |
||
---|---|---|
.. | ||
json | ||
progress | ||
signals | ||
table | ||
termstatus | ||
backup.go | ||
message.go | ||
stdio_wrapper_test.go | ||
stdio_wrapper.go |