Restore keypad support in ncurses ui

This commit is contained in:
Maxime Coste 2015-09-11 13:54:37 +01:00
parent 2334a57970
commit 8aca7622bf

View File

@ -263,8 +263,6 @@ NCursesUI::NCursesUI()
raw();
noecho();
nonl();
intrflush(stdscr, false);
keypad(stdscr, true);
curs_set(0);
start_color();
use_default_colors();
@ -461,6 +459,8 @@ void NCursesUI::check_resize(bool force)
resize_term(ws.ws_row, ws.ws_col);
m_window = (NCursesWin*)newpad(ws.ws_row, ws.ws_col);
intrflush(m_window, false);
keypad(m_window, true);
m_dimensions = CharCoord{ws.ws_row-1, ws.ws_col};