use string-append for building ansi escape codes

This commit is contained in:
krzygorz 2019-11-07 18:34:41 +01:00
parent abfa6a724e
commit 05521e5e1d

View file

@ -18,7 +18,7 @@
(else "0"))) (else "0")))
(define (ansi-escape color) (define (ansi-escape color)
(each (integer->char 27) "[" (color->ansi color) "m")) (string-append (string (integer->char 27)) "[" (color->ansi color) "m"))
(define (colored new-color . args) (define (colored new-color . args)
(fn (color) (fn (color)