[slime-devel] Hat-M (^M) in *slime-repl* buffer on Windows?

Paulo Madeira acelent at gmail.com
Fri May 4 23:55:28 UTC 2012


2012/5/4 Dave Cooper:
> Does anyone know how to suppress the
>
>  ^M
>
> at the end of every line in the slime repl on Windows?
>
> This is with acl82m-win-x86.

In what exact situation does it happen?

1. Do you have the most recent Slime?
2. Are you using a dedicated output stream?
3. Is it output to *standard-output* or to another stream?

It seems, from a quick test, that:

CL-USER> (princ "
" *terminal-io*)

prints a ^M when not using a dedicated output stream. The same happens
to *query-io* and *debug-io*.

However, to *standard-output*, *error-output* and *trace-output*, it
doesn't, either with or without a dedicated output stream.

It might have something to do with the bidirectional streams. For the
short-term, try this in your ~/.swank.lisp:

(setf swank:*use-dedicated-output-stream* t)

Paulo Madeira




More information about the slime-devel mailing list