You are not logged in.

#1 2012-03-05 09:33:36

momo.reina
Member
Registered: 2012-02-23
Posts: 66

[SOLVED] for the lispers out there | output buffers and finish-output

so i'm writing some software that does some fair bit of communicating with the user, interacting with the SLIME REPL was perfect, however when i saved a core image this problem cropped up. unless I include finish-output after all forms of printing to screen (format t, princ, etc.), some of the output would remain in the output buffer until the buffer was full. i understand this is to spec but is there some sort of work-around here? or do i really have to add (finish-output nil) everywhere I output to screen?

link to the code: https://gitorious.org/ganesh/ganesh/blo … /core.lisp

Last edited by momo.reina (2012-03-10 14:02:55)

Offline

#2 2012-03-05 10:49:01

momo.reina
Member
Registered: 2012-02-23
Posts: 66

Re: [SOLVED] for the lispers out there | output buffers and finish-output

i just wrote a wrapper function for finish-output and read.

another solution would be to use gray streams but seems like overkill.

mods please marked as solved

Offline

Board footer

Powered by FluxBB