mirror of
https://github.com/restic/restic.git
synced 2025-12-24 00:29:39 -05:00
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.go | ||
| stdio_wrapper_test.go | ||