Hi Daniel,
Andy,

> I think this is the minimum for .guile:
> 
> (import (system repl common) (ice-9 format))
> (repl-default-option-set! 'print (lambda (repl val) (format #t "~200@y" val)))
> 
> That doesn't seem so bad. For the current repl you can do:
> 
> (repl-option-set! (car (fluid-ref *repl-stack*)) 'print (lambda (repl val) 
> (format
> #t "~200@y" val)))

Veeeeeeery complicated :)

Howe about this:

        (set! %repl-printer truncated-print)
        (set! %truncated-print-max-chars 72)

In the repl

        ,repl-printer truncated-print
        ,truncated-print-max-chars 72

Once set, the above would be used by error and raised exception 'printers', per
default imo, otherwise we could also have:

        (set! %error-printer truncated-print)

In the repl

        ,error-printer truncated-print

Regards,
David

Attachment: pgpsCkXQiMERe.pgp
Description: OpenPGP digital signature

Reply via email to