Menu
  • HOME
  • TAGS

Is there any way to clear Curse's event queue?

c++,pdcurses

PDCurses implements flushinp, which is supposed to do what is requested. The comment and function (for win32, for example) states /* discard any pending keyboard or mouse input -- this is the core routine for flushinp() */ void PDC_flushinp(void) { PDC_LOG(("PDC_flushinp() - called\n")); FlushConsoleInputBuffer(pdc_con_in); } This function by the way...

Using 3rd party libraries in Visual Studio 2013

c++,visual-studio-2013,curses,pdcurses

I have found what the issue is, and I'll be posting it here for posterity: Go to property pages. It is necessary to go to the C/C++ category under configuration properties and add the path to "Additional Include Directories", not "Additional Library Directories" under Linker. (Not sure if both are...

printw() won't print a single character from a uint8_t array

c,ncurses,curses,pdcurses

You need to get rid of the carriage return (CR) characters (\r). When you output a CR, ncurses resets the cursor to the first column in the same row. Then when you output a NL (\n), ncurses erases from the cursor position to the end of the row before advancing...