[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: repl, abridged output?
From: |
Daniel Llorens |
Subject: |
Re: repl, abridged output? |
Date: |
Tue, 4 Dec 2012 10:28:08 +0100 |
On Dec 4, 2012, at 02:43, Daniel Hartwig wrote:
> On 3 December 2012 20:39, Daniel Llorens <address@hidden> wrote:
>> I've seen that there's a REPL command ,inspect that produces
>> abridged output. Is it possible to have this as the default for
>> printing to the REPL? Is there any way to configure this?
>
> scheme@(guile-user)> (eval '(set! repl-print
> (lambda (repl val)
> (if (not (eq? val *unspecified*))
> (begin
> (run-hook before-print-hook val)
> (format #t "~20ATy" val)
> (newline)))))
> (resolve-module '(system repl common)))
> scheme@(guile-user)> (use-modules (srfi srfi-1))
> scheme@(guile-user)> (iota 500)
> $1 = (0 1 2 3 4 5 6 7 …)
Excellent, thank you.
For the benefit of the list, AT in the format string is the at character.
Daniel