rgb8
import { rgb8 } from "jsr:@ende/fmt/colors";function
function rgb8(str: string, color: number): stringSet text color using paletted 8bit colors. https://en.wikipedia.org/wiki/ANSI_escape_code#8-bit
str: stringThe text to color
color: numberThe color code
Returns
The text with paletted 8bit color
Example: Usage
import { rgb8 } from "@ende/fmt/colors";
console.log(rgb8("Hello, world!", 42));