mirror of
https://github.com/bootandy/dust.git
synced 2026-06-08 11:29:05 +03:00
[GH-ISSUE #342] By default, disable progress indicator if stdout is redirected to a file #154
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @jjvliu on GitHub (Nov 9, 2023).
Original GitHub issue: https://github.com/bootandy/dust/issues/342
When running a command like
dust > dust.log, the output file will begin with an extremely long line that contains every copy of the progress indicator and control characters for erasing the terminal, such asA simple fix for this would be to enable the
-Por--no-progressflag by default ifdustdetects that stdout was redirected to a file, for example using!isattyfrom libc.@bootandy commented on GitHub (Nov 9, 2023):
good idea.
@bootandy commented on GitHub (Nov 22, 2023):
Fixed on head.