Description Usage Arguments Value See Also Examples
Add color and other text attributes to a character vector. Attributes can be seen after text is passed to cat, though it may only show up in a terminal. Note that terminal attributes and colors are automatically reset to default after text is printed.
1 |
x |
character vector to be styled |
fg |
character or numeric value for the foreground color. See |
bg |
character or numeric value for the background color. See |
attr |
character vector describing attributes to turn on. See |
character vector
Other style functions:
attr_off(),
attr_on(),
bg_off(),
bg_on(),
color_off(),
color_pair(),
fg_off(),
fg_on(),
make_bg(),
make_fg(),
make_style(),
reset()
1 2 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.