2
2
mirror of https://github.com/octoleo/restic.git synced 2024-11-13 08:46:33 +00:00
restic/internal/ui/termstatus
Michael Eischer b48f579530 termstatus: Fix canUpdateStatus detection for redirected output
The canUpdateStatus check was simplified in #2608, but it accidentally flipped
the condition. The correct check is as follows: If the output is a pipe then
restic probably runs in mintty/cygwin. In that case it's possible to
update the output status. In all other cases it isn't.

This commit inverts to condition again to offer the previous and correct
behavior.
2020-12-06 19:02:42 +01:00
..
background_linux_test.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.go Fix IsProcessBackground on Linux with stdin redirection 2020-10-13 13:12:02 +02:00
status_test.go Fix string truncation in ui/termstatus 2020-11-02 12:50:49 +01:00
status.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 Remove code copy-pasted from x/crypto/ssh/terminal 2020-02-29 18:03:49 +01:00
terminal_windows.go termstatus: Fix canUpdateStatus detection for redirected output 2020-12-06 19:02:42 +01:00