Skip to contents

Functions to convert a style string to a named list and back.

Usage

strfstyle(...)

strpstyle(x)

Arguments

...

Named strings and logicals or one named list. Colors and attributes.

x

A string.

Value

A string or named list.

Examples

if (FALSE) {
strfstyle(fg = "red", bg = "#00ff00", blink = TRUE, align = FALSE)
strpstyle("fg=red,bg=#00ff00,blink,noalign")
}