<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=""><br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On Dec 23, 2017, at 2:22 PM, Ben Lambert <<a href="mailto:belambert@mac.com" class="">belambert@mac.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><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 class=""><br class=""></div><div class="">Awesome thanks!</div><div class=""><br class=""></div><div class="">I got that code to work, although I'm not sure if the "how to use" instructions are quite right.</div><div class=""><br class=""></div><div class="">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 class=""><a href="https://github.com/belambert/slime/commit/68074c9e096e65ddd1f70fd271907d4692244f27" class="">https://github.com/belambert/slime/commit/68074c9e096e65ddd1f70fd271907d4692244f27</a></div></div></div></blockquote><div><br class=""></div><div>Bump. Any idea how to make this work?</div><div><br class=""></div><div>Thanks,</div><div>Ben</div><div><br class=""></div><div><br class=""></div><br class=""><blockquote type="cite" class=""><div class=""><div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><div class="">(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 class=""><br class=""></div><div class="">Thanks,</div><div class="">Ben</div><div class=""><br class=""></div><br class=""><blockquote type="cite" class=""><div class=""><div class=""><br class="">Cheers,<br class=""><br class="">--<span class="Apple-converted-space"> </span><br class="">Luís Oliveira<br class=""><a href="http://kerno.org/~luis/" class="">http://kerno.org/~luis/</a></div></div></blockquote></div></div></blockquote></div><br class=""></body></html>