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

This commit is contained in:
nick black 2020-08-25 01:41:06 -04:00
parent f877b4f0ea
commit df33f381e5

View File

@ -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)