2 ms·
Not at all! Like many CLI tools, it turns off the formatting when it detects you're not outputting to a terminal. Here's where it checks: https://github.com/T
by varenc 5y ago
Not at all! Like many CLI tools, it turns off the formatting when it detects you're not outputting to a terminal.
Here's where it checks: https://github.com/Textualize/rich/blob/5a457bfbc662ab8701dcb71080d0b9bbdb2b8b72/rich/console.py#L904 https://github.com/Textualize/rich/blob/5a457bfbc662ab8701dc... (and I just tested to confirm it does indeed work)