chickadee » chibi-term » gray-escape

gray-escape gray-levelprocedure

Return a string consisting of an ANSI escape code to select the text color specified by the gray-level argument, which must be an exact integer in the range [0, 23].

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