Skip to main content

Module context

Module context 

Source
Expand description

Output context detection for RCH.

Determines when rich terminal output is safe to use vs when plain/JSON output is required. This is critical for agent compatibility - hook mode must output pure JSON.

Enums§

OutputContext
Output context determines what level of rich formatting to use.

Functions§

force_color_enables
Whether a set FORCE_COLOR value turns color on. 0 and false turn it off, as in the supports-color convention; any other value (including an empty one) turns it on.