f
bg256
Generates an ANSI escape code for setting the background color using 8-bit color codes.
f
fg256
Generates an ANSI escape code for setting the text (foreground) color using 8-bit color codes.
f
fgBg256
Generates ANSI escape codes for setting both the text (foreground) and background colors using 8-bit color codes.
Usage
import * as mod from "sgr/8bit.ts";