Hi Nala, Ludo- > Could you comment this? I’m not clear on what each field is. > >> +(define *color-list* >> + `((CLEAR . "0") >> + (RESET . "0") >> + (BOLD . "1") >> + (DARK . "2") >> + (UNDERLINE . "4") >> + (UNDERSCORE . "4") >> + (BLINK . "5") >> + (REVERSE . "6") >> + (CONCEALED . "8") >> + (BLACK . "30") >> + (RED . "31") >> + (GREEN . "32") >> + (YELLOW . "33") >> + (BLUE . "34") >> + (MAGENTA . "35") >> + (CYAN . "36") >> + (WHITE . "37") >> + (ON-BLACK . "40") >> + (ON-RED . "41") >> + (ON-GREEN . "42") >> + (ON-YELLOW . "43") >> + (ON-BLUE . "44") >> + (ON-MAGENTA . "45") >> + (ON-CYAN . "46") >> + (ON-WHITE . "47")))
For what it is worth, below is the ECMA-48 standard's concept of what these values do. ECMA-48 lists "7" as reverse, instead of "6". 0 default 1 bold 2 faint 4 singly underlined 5 slowly blinking 6 rapidly blinking 7 negative image 8 concealed characters 30 black display 31 red display 32 green display 33 yellow display 34 blue display 35 magenta display 36 cyan display 37 white display 40 black background 41 red background 42 green background 43 yellow background 44 blue background 45 magenta background 46 cyan background 47 white background Of course, each terminal is different in practice. The only way to be sure you are getting it right is to go through terminfo. OTOH, these days when everything behaves almost like color xterm, maybe parsing terminfo is just being pedantic. Thanks, Mike Gran