term_colors: Get the colors used in the terminal

term_backgroundR Documentation

Get the colors used in the terminal

Description

Get the colors used in the terminal

Usage

term_background()

term_foreground()

term_palette()

Details

Getting the color palette used in the terminal is terminal specific. Currently only the kitty terminal is supported. For other terminals default colors are returned.

Value

term_background and term_foreground will return a length 1 vector with a color. term_palette will return a vector of colors.

See Also

kitty_colors for the functions returning the specific colors used in the kitty terminal.

Examples

term_background()


terminalgraphics documentation built on Aug. 28, 2025, 9:09 a.m.