powered by
Get the color mode of the terminal
term_color_mode()
Returns NA when the terminal does not support querying the color mode. Otherwise returns either 'dark' or 'light'.
NA
Uses ANSI SI ? 996 n to determine the color mode. See https://contour-terminal.org/vt-extensions/color-palette-update-notifications/.
SI ? 996 n
Run the code above in your browser using DataLab