chickadee » chibi-term » rgb-escape

rgb-escape red-level green-level blue-levelprocedure

Return a string consisting of an ANSI escape code to select the text color specified by the red-level, green-level, and blue-level arguments, each of which must be an exact integer in the range [0, 5].

The caller is resonsible for verifying that the terminal supports 256 colors.