mirror of
https://github.com/Textualize/rich.git
synced 2025-08-04 10:08:40 +00:00
note
This commit is contained in:
parent
07aaca6093
commit
27ec1cfb15
1 changed files with 4 additions and 1 deletions
|
@ -427,7 +427,10 @@ If the environment variable ``NO_COLOR`` is set, Rich will disable all color in
|
|||
.. note::
|
||||
The ``NO_COLOR`` environment variable removes *color* only. Styles such as dim, bold, italic, underline etc. are preserved.
|
||||
|
||||
The environment variable ``TTY_COMPATIBLE`` is used to override Rich's auto-detection of terminal support. If ``TTY_COMPATIBLE`` is set to ``1`` then Rich will assume it is writing to a device which can handle escape sequences like a terminal. If ``TTY_COMPATIBLE`` is set to ``"0"``, then Rich will assume that it is not writing to a terminal. If the variable is not set, or set to a value other than "0" or "1", then Rich will attempt to auto-detect terminal support. If you want Rich output in CI or Github Actions, then you should set ``TTY_COMPATIBLE=1``.
|
||||
The environment variable ``TTY_COMPATIBLE`` is used to override Rich's auto-detection of terminal support. If ``TTY_COMPATIBLE`` is set to ``1`` then Rich will assume it is writing to a device which can handle escape sequences like a terminal. If ``TTY_COMPATIBLE`` is set to ``"0"``, then Rich will assume that it is not writing to a terminal. If the variable is not set, or set to a value other than "0" or "1", then Rich will attempt to auto-detect terminal support.
|
||||
|
||||
.. note::
|
||||
If you want Rich output in CI or Github Actions, then you should set ``TTY_COMPATIBLE=1``.
|
||||
|
||||
Note that these variable set the default behavior. If you explicitly set ``force_terminal`` in the Console constructor, then this will take precedence over the environment variables.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue