col256: Apply 256-color formatting

View source: R/fmt.R

col256R Documentation

Apply 256-color formatting

Description

Apply 256-color formatting

Usage

col256(text, col = "79", bg = FALSE, output_type = c("ansi", "html", "plain"))

Arguments

text

Character: Text to color

col

Character or numeric: Color (ANSI 256-color code, hex for HTML)

bg

Logical: If TRUE, apply as background color

output_type

Character: Output type ("ansi", "html", "plain")

Value

Character: Formatted text with 256-color styling

Author(s)

EDG

Examples

col256("Hello", col = 160, output_type = "ansi")

rtemis.core documentation built on April 22, 2026, 1:11 a.m.