make_style {cursr} | R Documentation |
Create Color & Attribute Style
Description
Returns the ANSI codes for the specified colors and text attributes.
Usage
make_style(fg = NA, bg = NA, attr = NA)
Arguments
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 |
Value
ANSI character string
See Also
Other style functions:
attr_off()
,
attr_on()
,
bg_off()
,
bg_on()
,
color_off()
,
color_pair()
,
fg_off()
,
fg_on()
,
make_bg()
,
make_fg()
,
reset()
,
style()
Examples
cat(make_style(fg="blue", bg=c(192,192,192), attr=c("ul", "st")))
cat("Hello World!\n")
reset()
[Package cursr version 0.1.0 Index]