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...
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...
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...