mirror of
https://github.com/dankamongmen/notcurses.git
synced 2024-11-18 03:25:55 +00:00
c++ wrappers: cursor_{en,dis}able, iprefix() #952
This commit is contained in:
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…
Reference in New Issue
Block a user