restic/internal/ui/termstatus
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
..
background.go Fix IsProcessBackground on Linux with stdin redirection 2020-10-13 13:12:02 +02:00
background_linux.go Fix IsProcessBackground on Linux with stdin redirection 2020-10-13 13:12:02 +02:00
background_linux_test.go Add more error handling 2021-01-30 20:19:47 +01:00
status.go Unify interactive terminal detection code 2021-04-11 20:02:09 +02:00
status_test.go Fix string truncation in ui/termstatus 2020-11-02 12:50:49 +01:00
terminal_posix.go Rework termstatus 2018-05-07 21:40:07 +02:00
terminal_unix.go Unify interactive terminal detection code 2021-04-11 20:02:09 +02:00
terminal_windows.go Properly detect mintty output redirection 2021-04-11 20:02:09 +02:00