Setting style to TaskProgressColumn does not change displayed text style:
from time import sleep
from rich.progress import Progress, TaskProgressColumn
progress_column = TaskProgressColumn(style="red")
progress = Progress(progress_column)
with progress:
for n in progress.track(range(100)):
sleep(0.1)
Result:
(not red)
Platform
Click to expand
What platform (Win/Linux/Mac) are you running on?
- Windows 11 connected to Ubuntu 20.04 via ssh
What terminal software are you using?
- Windows Terminal
I may ask you to copy and paste the output of the following commands. It may save some time if you do it now.
If you're using Rich in a terminal:
╭───────────────────────── ─────────────────────────╮
│ A high level console interface. │
│ │
│ ╭──────────────────────────────────────────────────────────────────────────────╮ │
│ │ │ │
│ ╰──────────────────────────────────────────────────────────────────────────────╯ │
│ │
│ color_system = '256' │
│ encoding = 'utf-8' │
│ file = <_io.TextIOWrapper name='' mode='w' encoding='utf-8'> │
│ height = 38 │
│ is_alt_screen = False │
│ is_dumb_terminal = False │
│ is_interactive = True │
│ is_jupyter = False │
│ is_terminal = True │
│ legacy_windows = False │
│ no_color = False │
│ options = ConsoleOptions( │
│ size=ConsoleDimensions(width=156, height=38), │
│ legacy_windows=False, │
│ min_width=1, │
│ max_width=156, │
│ is_terminal=True, │
│ encoding='utf-8', │
│ max_height=38, │
│ justify=None, │
│ overflow=None, │
│ no_wrap=False, │
│ highlight=None, │
│ markup=None, │
│ height=None │
│ ) │
│ quiet = False │
│ record = False │
│ safe_box = True │
│ size = ConsoleDimensions(width=156, height=38) │
│ soft_wrap = False │
│ stderr = False │
│ style = None │
│ tab_size = 8 │
│ width = 156 │
╰──────────────────────────────────────────────────────────────────────────────────╯
╭─── ────╮
│ Windows features available. │
│ │
│ ╭───────────────────────────────────────────────────╮ │
│ │ WindowsConsoleFeatures(vt=False, truecolor=False) │ │
│ ╰───────────────────────────────────────────────────╯ │
│ │
│ truecolor = False │
│ vt = False │
╰───────────────────────────────────────────────────────╯
╭────── Environment Variables ───────╮
│ { │
│ 'TERM': 'xterm-256color', │
│ 'COLORTERM': None, │
│ 'CLICOLOR': None, │
│ 'NO_COLOR': None, │
│ 'TERM_PROGRAM': None, │
│ 'COLUMNS': None, │
│ 'LINES': None, │
│ 'JUPYTER_COLUMNS': None, │
│ 'JUPYTER_LINES': None, │
│ 'JPY_PARENT_PID': None, │
│ 'VSCODE_VERBOSE_LOGGING': None │
│ } │
╰────────────────────────────────────╯
platform="Linux"
rich==13.5.3
Describe the bug
Setting
style
toTaskProgressColumn
does not change displayed text style:Result: (not red)
Platform
Click to expand
What platform (Win/Linux/Mac) are you running on? - Windows 11 connected to Ubuntu 20.04 via ssh What terminal software are you using? - Windows Terminal I may ask you to copy and paste the output of the following commands. It may save some time if you do it now. If you're using Rich in a terminal: ╭─────────────────────────