|
@@ -262,7 +262,7 @@ static int curses2foo(const int _curses2foo[], const int _curseskey2foo[],
|
|
static void curses_refresh(DisplayChangeListener *dcl)
|
|
static void curses_refresh(DisplayChangeListener *dcl)
|
|
{
|
|
{
|
|
int chr, keysym, keycode, keycode_alt;
|
|
int chr, keysym, keycode, keycode_alt;
|
|
- enum maybe_keycode maybe_keycode;
|
|
|
|
|
|
+ enum maybe_keycode maybe_keycode = CURSES_KEYCODE;
|
|
|
|
|
|
curses_winch_check();
|
|
curses_winch_check();
|
|
|
|
|
|
@@ -299,7 +299,7 @@ static void curses_refresh(DisplayChangeListener *dcl)
|
|
|
|
|
|
/* alt or esc key */
|
|
/* alt or esc key */
|
|
if (keycode == 1) {
|
|
if (keycode == 1) {
|
|
- enum maybe_keycode next_maybe_keycode;
|
|
|
|
|
|
+ enum maybe_keycode next_maybe_keycode = CURSES_KEYCODE;
|
|
int nextchr = console_getch(&next_maybe_keycode);
|
|
int nextchr = console_getch(&next_maybe_keycode);
|
|
|
|
|
|
if (nextchr != -1) {
|
|
if (nextchr != -1) {
|