Learn R Programming

terminalgraphics (version 0.1.1)

term_background: Get the colors used in the terminal

Description

Get the colors used in the terminal

Usage

term_background()

term_foreground()

term_palette()

Arguments

Value

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

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.

See Also

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

Examples

Run this code
term_background()

Run the code above in your browser using DataLab