term_color_mode: Get the color mode of the terminal

View source: R/term_color_mode.R

term_color_modeR Documentation

Get the color mode of the terminal

Description

Get the color mode of the terminal

Usage

term_color_mode()

Details

Uses ANSI SI ? 996 n to determine the color mode. See https://contour-terminal.org/vt-extensions/color-palette-update-notifications/.

Value

Returns NA when the terminal does not support querying the color mode. Otherwise returns either 'dark' or 'light'.

Examples

term_color_mode()


terminalgraphics documentation built on May 1, 2026, 5:07 p.m.