bg_on {cursr}R Documentation

Turn On Background Color

Description

Specifies the background color of all future text written in the terminal bg_on accepts numeric values (RGB or 8-bit color code), hexadecimal characters, or the name of the color. Not all terminals support each possible color.

Usage

bg_on(...)

Arguments

...

character or numeric value

Details

Background color is turned off with bg_off.

Value

NULL

See Also

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

Examples

# Different methods of specifying yellow
bg_on("yellow")
bg_on("#FFFF00")
bg_on(11)
bg_on(255, 255, 0)

# Turn off color
bg_off()


[Package cursr version 0.1.0 Index]