(Two new macros CONSOLE_MAX_COLS and CONSOLE_MAX_ROWS) Don't change mode or beep if events are pending.