8#include "../string.hpp"
32template <
typename... Args>
33__JAFFAR_COMMON__INLINE__
void log(
const char* f, Args... args)
35 auto string = jaffarCommon::string::formatString(f, args...);
36 if (
_useNCurses ==
true) printw(
"%s",
string.c_str());
37 if (
_useNCurses ==
false) printf(
"%s",
string.c_str());
46__JAFFAR_COMMON__INLINE__
int kbhit()
51 nodelay(stdscr, TRUE);
66 nodelay(stdscr, FALSE);
102 nodelay(stdscr, TRUE);
109 nodelay(stdscr, FALSE);
126 nodelay(stdscr, TRUE);
127 scrollok(stdscr, TRUE);
__JAFFAR_COMMON__INLINE__ void initializeTerminal()
Definition ncurses.hpp:117
__JAFFAR_COMMON__INLINE__ void clearTerminal()
Definition ncurses.hpp:133
__JAFFAR_COMMON__INLINE__ int kbhit()
Definition ncurses.hpp:46
__JAFFAR_COMMON__INLINE__ void refreshTerminal()
Definition ncurses.hpp:152
__JAFFAR_COMMON__INLINE__ void log(const char *f, Args... args)
Definition ncurses.hpp:33
static bool _useNCurses
Definition ncurses.hpp:24
__JAFFAR_COMMON__INLINE__ int getKeyPress()
Definition ncurses.hpp:98
__JAFFAR_COMMON__INLINE__ void finalizeTerminal()
Definition ncurses.hpp:141
__JAFFAR_COMMON__INLINE__ int waitForKeyPress()
Definition ncurses.hpp:79