Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

make_bg

Create Background Color


Description

Returns the ANSI code for the specified background color. make_bg accepts numeric values (RGB or 8-bit color code), hexadecimal characters, or the name of the color.

Usage

make_bg(...)

Arguments

...

character or numeric value

Value

ANSI character string

See Also

Other style functions: attr_off(), attr_on(), bg_off(), bg_on(), color_off(), color_pair(), fg_off(), fg_on(), make_fg(), make_style(), reset(), style()

Examples

# Different methods of specifying cyan
make_bg("cyan")
make_bg("#00FFFF")
make_bg(14)
make_bg(0, 255, 255)

cursr

Cursor and Terminal Manipulation

v0.1.0
MIT + file LICENSE
Authors
Chris Mann
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.