Add Color & Attributes to a Character
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.
style(x, fg = NA, bg = NA, attr = NA)
character vector
x <- style("Hello World!\n", fg="blue", bg=c(192,192,192), attr=c("ul", "st")) cat(paste(x, "It is nice to meet you!"))
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.