powered by
Returns the ANSI codes for the specified colors and text attributes.
make_style(fg = NA, bg = NA, attr = NA)
character or numeric value for the foreground color. See fg_on for more details.
fg_on
character or numeric value for the background color. See bg_on for more details.
bg_on
character vector describing attributes to turn on. See attr_on for more details.
attr_on
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_fg(), reset(), style()
attr_off()
attr_on()
bg_off()
bg_on()
color_off()
color_pair()
fg_off()
fg_on()
make_bg()
make_fg()
reset()
style()
# NOT RUN { cat(make_style(fg="blue", bg=c(192,192,192), attr=c("ul", "st"))) cat("Hello World!\n") reset() # }
Run the code above in your browser using DataLab