/* Generated from src/key.c */
typedef struct {
  const char *tikey;
  const char *key;
} mapping_t;

static const mapping_t keymapping[] = {{"kich1", "insert"},
                                       {"kdch1", "delete"},
                                       {"khome", "home"},
                                       {"kend", "end"},
                                       {"kpp", "page_up"},
                                       {"knp", "page_down"},
                                       {"kcuu1", "up"},
                                       {"kcub1", "left"},
                                       {"kcud1", "down"},
                                       {"kcuf1", "right"},
                                       {"ka1", "kp_home"},
                                       {"kc1", "kp_end"},
                                       {"kb2", "kp_center"},
                                       {"ka3", "kp_page_up"},
                                       {"kc3", "kp_page_down"},
                                       {"kbs", "backspace"},

                                       {"kIC", "insert-s"},
                                       {"kDC", "delete-s"},
                                       {"kHOM", "home-s"},
                                       {"kEND", "end-s"},
                                       {"kPRV", "page_up-s"},
                                       {"kNXT", "page_down-s"},
                                       {"kLFT", "left-s"},
                                       {"kRIT", "right-s"},
                                       {"kcbt", "tab-s"},
                                       {"kent", "enter"},
                                       {"kind", "down-s"},
                                       {"kri", "up-s"},

                                       /* ncurses terminfo has many more keys with modifiers. */
                                       {"kDC3", "delete-m"},
                                       {"kDC4", "delete-ms"},
                                       {"kDC5", "delete-c"},
                                       {"kDC6", "delete-cs"},
                                       {"kDC7", "delete-cm"},
                                       {"kDN", "down-s"},
                                       {"kDN3", "down-m"},
                                       {"kDN4", "down-ms"},
                                       {"kDN5", "down-c"},
                                       {"kDN6", "down-cs"},
                                       {"kDN7", "down-cm"},
                                       {"kEND3", "end-m"},
                                       {"kEND4", "end-ms"},
                                       {"kEND5", "end-c"},
                                       {"kEND6", "end-cs"},
                                       {"kEND7", "end-cm"},
                                       {"kHOM3", "home-m"},
                                       {"kHOM4", "home-ms"},
                                       {"kHOM5", "home-c"},
                                       {"kHOM6", "home-cs"},
                                       {"kHOM7", "home-cm"},
                                       {"kIC3", "insert-m"},
                                       {"kIC4", "insert-ms"},
                                       {"kIC5", "insert-c"},
                                       {"kIC6", "insert-cs"},
                                       {"kIC7", "insert-cm"},
                                       {"kLFT3", "left-m"},
                                       {"kLFT4", "left-ms"},
                                       {"kLFT5", "left-c"},
                                       {"kLFT6", "left-cs"},
                                       {"kLFT7", "left-cm"},
                                       {"kNXT3", "page_down-m"},
                                       {"kNXT4", "page_down-ms"},
                                       {"kNXT5", "page_down-c"},
                                       {"kNXT6", "page_down-cs"},
                                       {"kNXT7", "page_down-cm"},
                                       {"kPRV3", "page_up-m"},
                                       {"kPRV4", "page_up-ms"},
                                       {"kPRV5", "page_up-c"},
                                       {"kPRV6", "page_up-cs"},
                                       {"kPRV7", "page_up-cm"},
                                       {"kRIT3", "right-m"},
                                       {"kRIT4", "right-ms"},
                                       {"kRIT5", "right-c"},
                                       {"kRIT6", "right-cs"},
                                       {"kRIT7", "right-cm"},
                                       {"kUP", "up-s"},
                                       {"kUP3", "up-m"},
                                       {"kUP4", "up-ms"},
                                       {"kUP5", "up-c"},
                                       {"kUP6", "up-cs"},
                                       {"kUP7", "up-cm"},
                                       {"ka2", "kp_down"},
                                       {"kb1", "kp_left"},
                                       {"kb3", "kp_right"},
                                       {"kc2", "kp_up"}};
