Skip to content

Commit

Permalink
Consistently apply the default colors (oops).
Browse files Browse the repository at this point in the history
  • Loading branch information
Kodiologist committed Feb 19, 2024
1 parent 0517f58 commit f89d12d
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions simalq/display.hy
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,10 @@
`blessed.Terminal` object `B`."
(.join "" (gfor
c x
:setv fg (if c.fg
(B.color-rgb #* (get color.by-name c.fg))
(fn [x] x))
:setv bg (if c.bg
(B.on-color-rgb #* (get color.by-name c.bg))
(fn [x] x))
:setv fg (B.color-rgb #* (get color.by-name
(or c.fg color.default-fg)))
:setv bg (B.on-color-rgb #* (get color.by-name
(or c.bg color.default-bg)))
(fg (bg c.char)))))

(defn colorstr-to-width [x width]
Expand Down

0 comments on commit f89d12d

Please sign in to comment.