Description Usage Arguments Value See Also Examples
Returns the ANSI codes for the specified colors. color_pair
accepts numeric values (RGB or 8-bit color code), hexadecimal characters, or the name of the color.
1 | color_pair(fg, bg)
|
fg |
character or numeric value for the foreground color |
bg |
character or numeric value for the background color |
ANSI character string
Other style functions:
attr_off()
,
attr_on()
,
bg_off()
,
bg_on()
,
color_off()
,
fg_off()
,
fg_on()
,
make_bg()
,
make_fg()
,
make_style()
,
reset()
,
style()
1 2 3 4 5 | # Blue background with white text
color_pair("white", "blue")
color_pair("#FFFFFF", "#0000FF")
color_pair(0, 12)
color_pair(c(255, 255, 255), c(0,0,255))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.