Skip to content

Commit 2b8de78

Browse files
authored
Merge pull request #4 from petrounias/master
Fixes issues 3 and 5
2 parents f55a556 + 459b3fe commit 2b8de78

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lambdaisland/ansi.cljc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
of :vga :cmd :osx :putty :mirc :xterm :ubuntu. For finer control bind to
6868
*color-scheme* directly."
6969
[name & body]
70-
`(binding [*color-scheme* (get color-schemes name)]
70+
`(binding [*color-scheme* (get color-schemes ~name)]
7171
~@body))
7272

7373
(defn get-color [n]
@@ -128,7 +128,7 @@
128128
5 (let [[color bold?] (color-8-bit (first more))]
129129
[(merge {type color} (if bold? {:bold true}))
130130
(next more)])
131-
2 [{:foreground (color-24-bit (take 3 more))}
131+
2 [{type (color-24-bit (take 3 more))}
132132
(nthnext more 3)])))
133133

134134
(defn str-split

0 commit comments

Comments
 (0)