Closed dankamongmen closed 1 month ago
i think fixing this will imply an API change, since we'll need the notcurses
object. =\
maybe we introduce a new function, and deprecate this one?
I'm halfway inclined to stash a library-wide singleton and allow functions like this to grab it, since all we need determine is UTF-8 presence, and there's no writing (i.e. we would take a const struct notcurses*
)....and then just document this unorthodox choice in the man page's BUGS
. Then there's no need for an API change. If we do this, keep the current naming.
In
lib/metric.c
, we've got this:called using
pthread_once()
fromncnmetric()
. this is obviously a holdover fromncmetric()
's outcurses origins. move over to standard notcurses detection. found while looking at #2779.