Jason Plew
I believe that you can use the ANSI escape sequences to change colors
in most Linux terminals. I'm sure that Google can tell you what the
various escape sequences are.
In lisp, character literals are prefixed with an octothorp-backslash,
so if you want to write the character 'p' in your program, you type
'#\p'. Troublesome characters usually have a mnemonic which works
too, like #\Newline and #\Escape. This gives us a way to put the ANSI
escape sequences into a program:
(defconstant ansi-red
(coerce #(#\escape #\[ #\0 #\; #\3 #\1 #\m) 'string))
In this example, I've written out a vector of characters, then turned
it into a string, and saved it as the constant ANSI-RED. Now, if you
print that constant, it should turn everything red:
(print ansi-red)
I hope that's enough to have some fun with. :)
-Tim
Jason Plew
t...@tenkan.org (Tim Daly, Jr.) wrote in message news:<wk3cpae...@tenkan.org>...
> I believe that you can use the ANSI escape sequences to change colors
> in most Linux terminals. I'm sure that Google can tell you what the
> various escape sequences are.
For Linux specifically: man console_codes
More generally: <http://www.ecma.ch/ecma1/STAND/ECMA-048.HTM>