powered by
Specifies the color of all future text written in the terminal fg_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.
fg_on
fg_on(...)
character or numeric value
NULL
Foreground color is turned off with fg_off.
fg_off
Other style functions: attr_off(), attr_on(), bg_off(), bg_on(), color_off(), color_pair(), fg_off(), make_bg(), make_fg(), make_style(), reset(), style()
attr_off()
attr_on()
bg_off()
bg_on()
color_off()
color_pair()
fg_off()
make_bg()
make_fg()
make_style()
reset()
style()
# NOT RUN { # Different methods of specifying red fg_on("red") fg_on("#FF0000") fg_on(9) fg_on(255, 0, 0) # Turn off color fg_off() # }
Run the code above in your browser using DataLab