Page 1 of 1

Output truncated

Posted: Tue Jan 17, 2017 3:22 pm
by jarecsni
Hi, I'm new to this list and lisp :) so apologies for the nature of this question. I'm using Allegro CL and it seems longer lists are abbreviated when output on the console. Does anyone know how to control this behaviour if at all possible.

Re: Output truncated

Posted: Thu Jan 19, 2017 3:30 am
by pjstirling
You probably want *print-readably*, but if you only care about avoiding the truncation you can bind *print-lines*, and *print-level* and *print-length*.

If you are using FORMAT then you will also want to use ~w instead of ~a

Re: Output truncated

Posted: Fri Jan 20, 2017 2:36 pm
by jarecsni
Works a treat, thanks!

Re: Output truncated

Posted: Fri Jan 20, 2017 3:29 pm
by jarecsni
Another quick question, what's the way to ensure these variables are set each time Allegro starts up?

Re: Output truncated

Posted: Fri Jan 20, 2017 4:03 pm
by pjstirling
Presumably allegro has an init file, but I've never used allegro so I cant tell you what it is.

Generally speaking you don't want to globally make changes to the pretty-printer variables, you should temporarily bind them with LET to the values you want for the print call in question.