diff options
Diffstat (limited to 'osdep/terminal-unix.c')
-rw-r--r-- | osdep/terminal-unix.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/osdep/terminal-unix.c b/osdep/terminal-unix.c index b3fc734f46..2991141cc5 100644 --- a/osdep/terminal-unix.c +++ b/osdep/terminal-unix.c @@ -337,6 +337,9 @@ static int load_termcap(char *termtype){ /* mintty uses this instead of the "K2" cap for keypad center */ keys_push_once("\033OE", MP_KEY_KP5); + /* fallback if terminfo and termcap are not available */ + keys_push_once("\012", MP_KEY_ENTER); + return getch2_keys.len; } |