function fgRgb
fgRgb(
r: number,
g: number,
b: number,
): unknown

Generates an ANSI escape code for the given RGB color.

Parameters

r: number
  • Red component (0-255)
g: number
  • Green component (0-255)
b: number
  • Blue component (0-255)

Return Type

unknown

ANSI escape code string

Usage

import { fgRgb } from "sgr/index.ts";