I've wondered about this for a while. Is it possible to print with ANSI
colors in a Slime repl buffer?
If I load the cl-ansi-text library from Quicklisp (ql:quickload
:cl-ansi-text), and I run (cl-ansi-text:yellow "yellow") in the Slime REPL
the output is: " [33myellow [0m". When I run the same commands directly in
an SBCL REPL, it prints as expected "yellow" in a yellow color.
Is it possible to use ANSI colors in Slime? Or maybe there's some
workaround?
<
https://github.com/deadtrickster/slime-repl-ansi-color> implements
what you're looking for. If you're comfortable with emacs lisp, you're
quite welcome to send a pull request to implement this functionality
in slime-repl without resorting to defadvice.