freenode/#slime - IRC Chatlog
Search
10:10:57
luis
https://common-lisp.net/project/slime/doc/html/Global-IO-Redirection.html the manual claims that M-x slime will globally redirect IO by default. That doesn't seem right.
10:14:57
Shinmera
no, it's quite annoying in fact when dealing with FFI that prints to stderr/stdout
10:43:40
luis
another option would be to have the *inferior-lisp* buffer relay output to the repl buffer
10:48:26
adlai
luis, I see it as a good thing that separate streams are not by default aggregated into one
10:49:46
adlai
especially when the most common cases i've experienced of my own code's stream output ending up in *inferior-lisp* instead of the repl is that multiple threads are printing simultaneously
10:57:07
adlai
e.g., I start a program from the shell, then a few hours later, start swank and connect a slime-repl. I don't want global redirection in this case, although I think you are talking specifically about images started from M-x slime
10:58:26
luis
And in fact, the claim that M-x slime turns *globally-redirect-io* on is true. It's just not doing that on my work PC for some reason.
11:13:22
luis
Shinmera: do you see the output of (cffi:foreign-funcall "puts" :string "Hello" :int) anywhere?
11:15:16
luis
Ah, it needs flushing. (cffi:foreign-funcall "fflush" :pointer (cffi:null-pointer) :int)
12:17:27
luis
Shinmera: here's a hack for you: https://gist.github.com/luismbo/aa8a3c2599c9690d001ecf81629d7ab6