c++ wrappers: cursor_{en,dis}able, iprefix() #952

pull/954/head
nick black 4 years ago
parent f877b4f0ea
commit df33f381e5

@ -74,6 +74,11 @@ namespace ncpp
return ::qprefix (val, decimal, buf, omitdec);
}
static const char* iprefix (uintmax_t val, uintmax_t decimal, char *buf, int omitdec) noexcept
{
return ::iprefix (val, decimal, buf, omitdec);
}
static const char* bprefix (uintmax_t val, uintmax_t decimal, char *buf, int omitdec) noexcept
{
return ::bprefix (val, decimal, buf, omitdec);
@ -146,6 +151,16 @@ namespace ncpp
return notcurses_cantruecolor (nc);
}
void cursor_enable () const noexcept
{
notcurses_cursor_enable (nc);
}
void cursor_disable () const noexcept
{
notcurses_cursor_disable (nc);
}
void get_stats (ncstats *stats) const noexcept
{
if (stats == nullptr)

Loading…
Cancel
Save