mirror of
https://github.com/mpv-player/mpv.git
synced 2025-12-28 05:33:14 +00:00
terminal-unix: add fallback for enter key
This worked just fine if terminfo or termcap was available.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user