Skip to content

Commit

Permalink
Merge pull request mighty-gerbils#431 from pclouds/srfi-159-color-fix
Browse files Browse the repository at this point in the history
srfi-159: fix incorrect "col" calculation with ANSI escape codes
  • Loading branch information
vyzo authored Feb 5, 2020
2 parents be617d7 + 695a591 commit 10dfcb9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/std/srfi/159/color.scm
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
(else "0")))

(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)
(fn (color)
Expand Down

0 comments on commit 10dfcb9

Please sign in to comment.