powered by
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.
bg_on
bg_on(...)
character or numeric value
NULL
Background color is turned off with bg_off.
bg_off
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()
attr_off()
attr_on()
bg_off()
color_off()
color_pair()
fg_off()
fg_on()
make_bg()
make_fg()
make_style()
reset()
style()
# NOT RUN { # Different methods of specifying yellow bg_on("yellow") bg_on("#FFFF00") bg_on(11) bg_on(255, 255, 0) # Turn off color bg_off() # }
Run the code above in your browser using DataLab