powered by
Returns the ANSI code for the specified foreground color. make_fg accepts numeric values (RGB or 8-bit color code), hexadecimal characters, or the name of the color.
make_fg
make_fg(...)
character or numeric value
ANSI character string
Other style functions: attr_off(), attr_on(), bg_off(), bg_on(), color_off(), color_pair(), fg_off(), fg_on(), make_bg(), make_style(), reset(), style()
attr_off()
attr_on()
bg_off()
bg_on()
color_off()
color_pair()
fg_off()
fg_on()
make_bg()
make_style()
reset()
style()
# NOT RUN { # Different methods of specifying red make_fg("red") make_fg("#FF0000") make_fg(9) make_fg(255, 0, 0) # }
Run the code above in your browser using DataLab