chickadee » ansi-escape-sequences » set-text256

set-text256 attribs text #!optional (reset #t)procedure

Change the colors and attributes of text (such as bold and underline) displayed on the screen. The following attributes are available, the same as set-text (symbols):

  • reset
  • bold
  • underscore
  • blink
  • reverse-video
  • concealed

Colors are specified with a two-element list, the first element being one of the symbols foreground or background followed by a number in the range 0..255. Most terminals use the same color palette by default: colors 0-15 are the familiar 16 terminal colors. Colors 17-232 form a 6x6x6 color cube, with the remaining 24 colors defining a grayscale ramp from dark to light.