2
2
mirror of https://github.com/octoleo/restic.git synced 2024-11-05 04:47:51 +00:00
restic/internal/ui
Michael Eischer 80564a9bc9 Properly detect mintty output redirection
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.
2021-04-11 20:02:09 +02:00
..
json errcheck: More error handling 2021-01-30 20:02:37 +01:00
progress restic: Test progress reporting of StreamTrees 2021-01-28 11:10:50 +01:00
signals ui/progress: extract signal handling into own package 2020-12-29 16:32:18 +01:00
table avoiding unnecessary type conversions 2019-06-30 23:58:00 +03:00
termstatus Properly detect mintty output redirection 2021-04-11 20:02:09 +02:00
backup.go ui: Simlify channel receive 2021-01-28 10:42:02 +01:00
message.go Use new archiver code for backup 2018-04-28 22:08:11 +02:00
stdio_wrapper_test.go Simplify ui.StdioWrapper.Write 2020-10-17 20:30:46 +02:00
stdio_wrapper.go Simplify ui.StdioWrapper.Write 2020-10-17 20:30:46 +02:00