You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
so on init of blessed, the _cache is hydrated with 8-color mode values by simple means of exporting an iife of ccolors. see exports.ccolors = (function() { ... }(). now, anytime someone calls .match, you are immediately reduced to that small cache. further, because .match references a mutatable export, vcolors is internally is also attached a reduced color reference. there is almost certainly a more robust and less mutable (read: confusing) way to do this.
cdaringe
added a commit
to cdaringe/neo-blessed
that referenced
this issue
Jun 22, 2020
Problem
I am trying to render a known valid color, e.g.
DarkOrange3: "#d75f00"
, but blessed doesn't honor it.example:
gets reduced internally to
1 fg
byProgram::_attr
.166
is the correct color index, not1
It seems that during color selection, when parsing my hex color, I end up getting dropped into this block:
neo-blessed/lib/colors.js
Lines 29 to 58 in fa63a5d
of which
exports.vcolors
is an array of only eight (8) items.one of two things is likely incorrect:
any assistance would be great!
thanks!
The text was updated successfully, but these errors were encountered: