Need to set escdelay later in the init process.

This commit is contained in:
casey langen 2018-12-25 05:51:26 -08:00
parent d41d48deba
commit b53aa33ae4

View File

@ -134,8 +134,6 @@ void App::InitCurses() {
PDC_set_title(this->appTitle.c_str());
win32::InterceptWndProc();
win32::SetAppTitle(this->appTitle);
#else
set_escdelay(20);
#endif
initscr();
@ -146,6 +144,9 @@ void App::InitCurses() {
refresh();
curs_set(0);
mousemask(ALL_MOUSE_EVENTS, nullptr);
#ifndef WIN32
set_escdelay(20);
#endif
}
void App::SetKeyHandler(KeyHandler handler) {