-
-
Notifications
You must be signed in to change notification settings - Fork 103
Closed
Description
Description
If the use of click wrapping on stdout causes click to not recognize standard output as a terminal and all formatting (ANSI codes) is discarded.
Code
import click
import progressbar
progressbar.streams.wrap_stdout()
click.secho("text", fg="red")
# white textIt can be fixed by:
sys.stdout.isatty = progressbar.streams.original_stdout.isattyI think it can be fixed by expose in WrappingIO class isatty method of target.
Versions
- Python version: 3.9.2
- Python distribution/environment: CPython/Anaconda/IPython/IDLE
- Operating System: Debian
- Package version: 3.53.1
Metadata
Metadata
Assignees
Labels
No labels