Colored output in REPL mode and (help) function
Posted: Mon Mar 26, 2012 7:37 am
Good european morning, folks!
Could anyone advice me how to make colored output in REPL (in Linux)?
Also I thought it would be good to have something like:
for more comfortable learning of the language in the interactive mode. Plus it could be not only built-in functions, but also user-defined functions with help information somewhere around:
(define (my-func)
"...help information..."
....
or
# formatted help information
(define (my-func)
...
Could anyone advice me how to make colored output in REPL (in Linux)?
Also I thought it would be good to have something like:
Code: Select all
> (help curry)
Syntax: (curry func exp)
Transforms func from a function f(x, y) that takes two arguments into a function fx(y) that takes a single argument. curry can be used on all functions taking two arguments.
Examples:
(set 'f (curry + 10)) → (lambda () (+ 10 (args 0)))
(map (curry list 'x) (sequence 1 5)) → ((x 1) (x 2) (x 3) (x 4) (x 5))
(define (my-func)
"...help information..."
....
or
# formatted help information
(define (my-func)
...