<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div><blockquote type="cite" class=""><div class=""><div class=""><blockquote type="cite" class="">I've wondered about this for a while. Is it possible to print with ANSI<br class="">colors in a Slime repl buffer?<br class=""><br class="">If I load the cl-ansi-text library from Quicklisp (ql:quickload<br class="">:cl-ansi-text), and I run (cl-ansi-text:yellow "yellow") in the Slime REPL<br class="">the output is: " [33myellow [0m". When I run the same commands directly in<br class="">an SBCL REPL, it prints as expected "yellow" in a yellow color.<br class=""><br class="">Is it possible to use ANSI colors in Slime? Or maybe there's some<br class="">workaround?<br class=""></blockquote><br class=""><<a href="https://github.com/deadtrickster/slime-repl-ansi-color" class="">https://github.com/deadtrickster/slime-repl-ansi-color</a>> implements<br class="">what you're looking for. If you're comfortable with emacs lisp, you're<br class="">quite welcome to send a pull request to implement this functionality<br class="">in slime-repl without resorting to defadvice.<br class=""></div></div></blockquote><div><br class=""></div><div>Awesome thanks!</div><div><br class=""></div><div>I got that code to work, although I'm not sure if the "how to use" instructions are quite right.</div><div><br class=""></div><div>I'm not very familiar with Emacs Lisp, but I took a stab at it anyway. I wasn't quite able to get it to work. I'm not sure I understand how the buffer positions and markers. Perhaps you have any tips for what's wrong?</div><div><a href="https://github.com/belambert/slime/commit/68074c9e096e65ddd1f70fd271907d4692244f27" class="">https://github.com/belambert/slime/commit/68074c9e096e65ddd1f70fd271907d4692244f27</a></div><div><br class=""></div><div>(Presumably, you would also want to be able to turn on/off the colors, but I didn't try to figure that out yet).</div><div><br class=""></div><div>Thanks,</div><div>Ben</div><div><br class=""></div><br class=""><blockquote type="cite" class=""><div class=""><div class=""><br class="">Cheers,<br class=""><br class="">-- <br class="">Luís Oliveira<br class=""><a href="http://kerno.org/~luis/" class="">http://kerno.org/~luis/</a><br class=""></div></div></blockquote></div><br class=""></body></html>