vi_keymap.c revision 157184
1231200Smm/* vi_keymap.c -- the keymap for vi_mode in readline (). */ 2231200Smm 3231200Smm/* Copyright (C) 1987, 1989, 1992 Free Software Foundation, Inc. 4231200Smm 5231200Smm This file is part of the GNU Readline Library, a library for 6231200Smm reading lines of text with interactive input and history editing. 7231200Smm 8231200Smm The GNU Readline Library is free software; you can redistribute it 9231200Smm and/or modify it under the terms of the GNU General Public License 10231200Smm as published by the Free Software Foundation; either version 2, or 11231200Smm (at your option) any later version. 12231200Smm 13231200Smm The GNU Readline Library is distributed in the hope that it will be 14231200Smm useful, but WITHOUT ANY WARRANTY; without even the implied warranty 15231200Smm of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16231200Smm GNU General Public License for more details. 17231200Smm 18231200Smm The GNU General Public License is often shipped with GNU software, and 19231200Smm is generally kept in a file called COPYING or LICENSE. If you do not 20231200Smm have a copy of the license, write to the Free Software Foundation, 21231200Smm 59 Temple Place, Suite 330, Boston, MA 02111 USA. */ 22231200Smm 23231200Smm#if !defined (BUFSIZ) 24231200Smm#include <stdio.h> 25231200Smm#endif /* !BUFSIZ */ 26231200Smm 27231200Smm#include "readline.h" 28231200Smm 29231200Smm#if 0 30231200Smmextern KEYMAP_ENTRY_ARRAY vi_escape_keymap; 31231200Smm#endif 32231200Smm 33231200Smm/* The keymap arrays for handling vi mode. */ 34231200SmmKEYMAP_ENTRY_ARRAY vi_movement_keymap = { 35231200Smm /* The regular control keys come first. */ 36231200Smm { ISFUNC, (rl_command_func_t *)0x0 }, /* Control-@ */ 37231200Smm { ISFUNC, (rl_command_func_t *)0x0 }, /* Control-a */ 38231200Smm { ISFUNC, (rl_command_func_t *)0x0 }, /* Control-b */ 39231200Smm { ISFUNC, (rl_command_func_t *)0x0 }, /* Control-c */ 40231200Smm { ISFUNC, rl_vi_eof_maybe }, /* Control-d */ 41231200Smm { ISFUNC, rl_emacs_editing_mode }, /* Control-e */ 42231200Smm { ISFUNC, (rl_command_func_t *)0x0 }, /* Control-f */ 43231200Smm { ISFUNC, rl_abort }, /* Control-g */ 44231200Smm { ISFUNC, rl_backward_char }, /* Control-h */ 45231200Smm { ISFUNC, (rl_command_func_t *)0x0 }, /* Control-i */ 46231200Smm { ISFUNC, rl_newline }, /* Control-j */ 47231200Smm { ISFUNC, rl_kill_line }, /* Control-k */ 48231200Smm { ISFUNC, rl_clear_screen }, /* Control-l */ 49231200Smm { ISFUNC, rl_newline }, /* Control-m */ 50231200Smm { ISFUNC, rl_get_next_history }, /* Control-n */ 51231200Smm { ISFUNC, (rl_command_func_t *)0x0 }, /* Control-o */ 52231200Smm { ISFUNC, rl_get_previous_history }, /* Control-p */ 53231200Smm { ISFUNC, rl_quoted_insert }, /* Control-q */ 54231200Smm { ISFUNC, rl_reverse_search_history }, /* Control-r */ 55231200Smm { ISFUNC, rl_forward_search_history }, /* Control-s */ 56231200Smm { ISFUNC, rl_transpose_chars }, /* Control-t */ 57231200Smm { ISFUNC, rl_unix_line_discard }, /* Control-u */ 58231200Smm { ISFUNC, rl_quoted_insert }, /* Control-v */ 59231200Smm { ISFUNC, rl_unix_word_rubout }, /* Control-w */ 60231200Smm { ISFUNC, (rl_command_func_t *)0x0 }, /* Control-x */ 61231200Smm { ISFUNC, rl_yank }, /* Control-y */ 62231200Smm { ISFUNC, (rl_command_func_t *)0x0 }, /* Control-z */ 63231200Smm 64231200Smm { ISFUNC, (rl_command_func_t *)0x0 }, /* Control-[ */ /* vi_escape_keymap */ 65231200Smm { ISFUNC, (rl_command_func_t *)0x0 }, /* Control-\ */ 66231200Smm { ISFUNC, (rl_command_func_t *)0x0 }, /* Control-] */ 67231200Smm { ISFUNC, (rl_command_func_t *)0x0 }, /* Control-^ */ 68231200Smm { ISFUNC, rl_vi_undo }, /* Control-_ */ 69231200Smm 70231200Smm /* The start of printing characters. */ 71231200Smm { ISFUNC, rl_forward_char }, /* SPACE */ 72231200Smm { ISFUNC, (rl_command_func_t *)0x0 }, /* ! */ 73231200Smm { ISFUNC, (rl_command_func_t *)0x0 }, /* " */ 74231200Smm { ISFUNC, rl_insert_comment }, /* # */ 75231200Smm { ISFUNC, rl_end_of_line }, /* $ */ 76231200Smm { ISFUNC, rl_vi_match }, /* % */ 77231200Smm { ISFUNC, rl_vi_tilde_expand }, /* & */ 78231200Smm { ISFUNC, (rl_command_func_t *)0x0 }, /* ' */ 79231200Smm { ISFUNC, (rl_command_func_t *)0x0 }, /* ( */ 80231200Smm { ISFUNC, (rl_command_func_t *)0x0 }, /* ) */ 81231200Smm { ISFUNC, rl_vi_complete }, /* * */ 82231200Smm { ISFUNC, rl_get_next_history}, /* + */ 83231200Smm { ISFUNC, rl_vi_char_search }, /* , */ 84231200Smm { ISFUNC, rl_get_previous_history }, /* - */ 85231200Smm { ISFUNC, rl_vi_redo }, /* . */ 86231200Smm { ISFUNC, rl_vi_search }, /* / */ 87231200Smm 88231200Smm /* Regular digits. */ 89231200Smm { ISFUNC, rl_beg_of_line }, /* 0 */ 90231200Smm { ISFUNC, rl_vi_arg_digit }, /* 1 */ 91231200Smm { ISFUNC, rl_vi_arg_digit }, /* 2 */ 92231200Smm { ISFUNC, rl_vi_arg_digit }, /* 3 */ 93231200Smm { ISFUNC, rl_vi_arg_digit }, /* 4 */ 94231200Smm { ISFUNC, rl_vi_arg_digit }, /* 5 */ 95231200Smm { ISFUNC, rl_vi_arg_digit }, /* 6 */ 96231200Smm { ISFUNC, rl_vi_arg_digit }, /* 7 */ 97231200Smm { ISFUNC, rl_vi_arg_digit }, /* 8 */ 98231200Smm { ISFUNC, rl_vi_arg_digit }, /* 9 */ 99231200Smm 100231200Smm /* A little more punctuation. */ 101231200Smm { ISFUNC, (rl_command_func_t *)0x0 }, /* : */ 102231200Smm { ISFUNC, rl_vi_char_search }, /* ; */ 103231200Smm { ISFUNC, (rl_command_func_t *)0x0 }, /* < */ 104231200Smm { ISFUNC, rl_vi_complete }, /* = */ 105231200Smm { ISFUNC, (rl_command_func_t *)0x0 }, /* > */ 106231200Smm { ISFUNC, rl_vi_search }, /* ? */ 107231200Smm { ISFUNC, (rl_command_func_t *)0x0 }, /* @ */ 108231200Smm 109231200Smm /* Uppercase alphabet. */ 110231200Smm { ISFUNC, rl_vi_append_eol }, /* A */ 111231200Smm { ISFUNC, rl_vi_prev_word}, /* B */ 112231200Smm { ISFUNC, rl_vi_change_to }, /* C */ 113231200Smm { ISFUNC, rl_vi_delete_to }, /* D */ 114231200Smm { ISFUNC, rl_vi_end_word }, /* E */ 115231200Smm { ISFUNC, rl_vi_char_search }, /* F */ 116231200Smm { ISFUNC, rl_vi_fetch_history }, /* G */ 117231200Smm { ISFUNC, (rl_command_func_t *)0x0 }, /* H */ 118231200Smm { ISFUNC, rl_vi_insert_beg }, /* I */ 119231200Smm { ISFUNC, (rl_command_func_t *)0x0 }, /* J */ 120231200Smm { ISFUNC, (rl_command_func_t *)0x0 }, /* K */ 121231200Smm { ISFUNC, (rl_command_func_t *)0x0 }, /* L */ 122231200Smm { ISFUNC, (rl_command_func_t *)0x0 }, /* M */ 123231200Smm { ISFUNC, rl_vi_search_again }, /* N */ 124231200Smm { ISFUNC, (rl_command_func_t *)0x0 }, /* O */ 125231200Smm { ISFUNC, rl_vi_put }, /* P */ 126231200Smm { ISFUNC, (rl_command_func_t *)0x0 }, /* Q */ 127231200Smm { ISFUNC, rl_vi_replace }, /* R */ 128231200Smm { ISFUNC, rl_vi_subst }, /* S */ 129231200Smm { ISFUNC, rl_vi_char_search }, /* T */ 130231200Smm { ISFUNC, rl_revert_line }, /* U */ 131231200Smm { ISFUNC, (rl_command_func_t *)0x0 }, /* V */ 132231200Smm { ISFUNC, rl_vi_next_word }, /* W */ 133231200Smm { ISFUNC, rl_vi_rubout }, /* X */ 134231200Smm { ISFUNC, rl_vi_yank_to }, /* Y */ 135231200Smm { ISFUNC, (rl_command_func_t *)0x0 }, /* Z */ 136231200Smm 137231200Smm /* Some more punctuation. */ 138231200Smm { ISFUNC, (rl_command_func_t *)0x0 }, /* [ */ 139231200Smm { ISFUNC, rl_vi_complete }, /* \ */ 140231200Smm { ISFUNC, (rl_command_func_t *)0x0 }, /* ] */ 141231200Smm { ISFUNC, rl_vi_first_print }, /* ^ */ 142231200Smm { ISFUNC, rl_vi_yank_arg }, /* _ */ 143231200Smm { ISFUNC, rl_vi_goto_mark }, /* ` */ 144231200Smm 145231200Smm /* Lowercase alphabet. */ 146231200Smm { ISFUNC, rl_vi_append_mode }, /* a */ 147231200Smm { ISFUNC, rl_vi_prev_word }, /* b */ 148231200Smm { ISFUNC, rl_vi_change_to }, /* c */ 149231200Smm { ISFUNC, rl_vi_delete_to }, /* d */ 150231200Smm { ISFUNC, rl_vi_end_word }, /* e */ 151231200Smm { ISFUNC, rl_vi_char_search }, /* f */ 152231200Smm { ISFUNC, (rl_command_func_t *)0x0 }, /* g */ 153231200Smm { ISFUNC, rl_backward_char }, /* h */ 154231200Smm { ISFUNC, rl_vi_insertion_mode }, /* i */ 155231200Smm { ISFUNC, rl_get_next_history }, /* j */ 156231200Smm { ISFUNC, rl_get_previous_history }, /* k */ 157231200Smm { ISFUNC, rl_forward_char }, /* l */ 158231200Smm { ISFUNC, rl_vi_set_mark }, /* m */ 159231200Smm { ISFUNC, rl_vi_search_again }, /* n */ 160231200Smm { ISFUNC, (rl_command_func_t *)0x0 }, /* o */ 161231200Smm { ISFUNC, rl_vi_put }, /* p */ 162231200Smm { ISFUNC, (rl_command_func_t *)0x0 }, /* q */ 163231200Smm { ISFUNC, rl_vi_change_char }, /* r */ 164231200Smm { ISFUNC, rl_vi_subst }, /* s */ 165231200Smm { ISFUNC, rl_vi_char_search }, /* t */ 166231200Smm { ISFUNC, rl_vi_undo }, /* u */ 167231200Smm { ISFUNC, (rl_command_func_t *)0x0 }, /* v */ 168231200Smm { ISFUNC, rl_vi_next_word }, /* w */ 169231200Smm { ISFUNC, rl_vi_delete }, /* x */ 170231200Smm { ISFUNC, rl_vi_yank_to }, /* y */ 171231200Smm { ISFUNC, (rl_command_func_t *)0x0 }, /* z */ 172231200Smm 173231200Smm /* Final punctuation. */ 174231200Smm { ISFUNC, (rl_command_func_t *)0x0 }, /* { */ 175231200Smm { ISFUNC, rl_vi_column }, /* | */ 176231200Smm { ISFUNC, (rl_command_func_t *)0x0 }, /* } */ 177231200Smm { ISFUNC, rl_vi_change_case }, /* ~ */ 178231200Smm { ISFUNC, (rl_command_func_t *)0x0 }, /* RUBOUT */ 179231200Smm 180231200Smm#if KEYMAP_SIZE > 128 181231200Smm /* Undefined keys. */ 182231200Smm { ISFUNC, (rl_command_func_t *)0x0 }, 183231200Smm { ISFUNC, (rl_command_func_t *)0x0 }, 184231200Smm { ISFUNC, (rl_command_func_t *)0x0 }, 185231200Smm { ISFUNC, (rl_command_func_t *)0x0 }, 186231200Smm { ISFUNC, (rl_command_func_t *)0x0 }, 187231200Smm { ISFUNC, (rl_command_func_t *)0x0 }, 188231200Smm { ISFUNC, (rl_command_func_t *)0x0 }, 189231200Smm { ISFUNC, (rl_command_func_t *)0x0 }, 190231200Smm { ISFUNC, (rl_command_func_t *)0x0 }, 191231200Smm { ISFUNC, (rl_command_func_t *)0x0 }, 192231200Smm { ISFUNC, (rl_command_func_t *)0x0 }, 193231200Smm { ISFUNC, (rl_command_func_t *)0x0 }, 194231200Smm { ISFUNC, (rl_command_func_t *)0x0 }, 195231200Smm { ISFUNC, (rl_command_func_t *)0x0 }, 196231200Smm { ISFUNC, (rl_command_func_t *)0x0 }, 197231200Smm { ISFUNC, (rl_command_func_t *)0x0 }, 198231200Smm { ISFUNC, (rl_command_func_t *)0x0 }, 199231200Smm { ISFUNC, (rl_command_func_t *)0x0 }, 200231200Smm { ISFUNC, (rl_command_func_t *)0x0 }, 201231200Smm { ISFUNC, (rl_command_func_t *)0x0 }, 202231200Smm { ISFUNC, (rl_command_func_t *)0x0 }, 203231200Smm { ISFUNC, (rl_command_func_t *)0x0 }, 204231200Smm { ISFUNC, (rl_command_func_t *)0x0 }, 205231200Smm { ISFUNC, (rl_command_func_t *)0x0 }, 206231200Smm { ISFUNC, (rl_command_func_t *)0x0 }, 207231200Smm { ISFUNC, (rl_command_func_t *)0x0 }, 208231200Smm { ISFUNC, (rl_command_func_t *)0x0 }, 209231200Smm { ISFUNC, (rl_command_func_t *)0x0 }, 210231200Smm { ISFUNC, (rl_command_func_t *)0x0 }, 211231200Smm { ISFUNC, (rl_command_func_t *)0x0 }, 212231200Smm { ISFUNC, (rl_command_func_t *)0x0 }, 213231200Smm { ISFUNC, (rl_command_func_t *)0x0 }, 214231200Smm { ISFUNC, (rl_command_func_t *)0x0 }, 215231200Smm { ISFUNC, (rl_command_func_t *)0x0 }, 216231200Smm { ISFUNC, (rl_command_func_t *)0x0 }, 217231200Smm { ISFUNC, (rl_command_func_t *)0x0 }, 218231200Smm { ISFUNC, (rl_command_func_t *)0x0 }, 219231200Smm { ISFUNC, (rl_command_func_t *)0x0 }, 220231200Smm { ISFUNC, (rl_command_func_t *)0x0 }, 221231200Smm { ISFUNC, (rl_command_func_t *)0x0 }, 222231200Smm { ISFUNC, (rl_command_func_t *)0x0 }, 223231200Smm { ISFUNC, (rl_command_func_t *)0x0 }, 224231200Smm { ISFUNC, (rl_command_func_t *)0x0 }, 225231200Smm { ISFUNC, (rl_command_func_t *)0x0 }, 226231200Smm { ISFUNC, (rl_command_func_t *)0x0 }, 227231200Smm { ISFUNC, (rl_command_func_t *)0x0 }, 228231200Smm { ISFUNC, (rl_command_func_t *)0x0 }, 229231200Smm { ISFUNC, (rl_command_func_t *)0x0 }, 230231200Smm { ISFUNC, (rl_command_func_t *)0x0 }, 231231200Smm { ISFUNC, (rl_command_func_t *)0x0 }, 232231200Smm { ISFUNC, (rl_command_func_t *)0x0 }, 233231200Smm { ISFUNC, (rl_command_func_t *)0x0 }, 234231200Smm { ISFUNC, (rl_command_func_t *)0x0 }, 235231200Smm { ISFUNC, (rl_command_func_t *)0x0 }, 236231200Smm { ISFUNC, (rl_command_func_t *)0x0 }, 237231200Smm { ISFUNC, (rl_command_func_t *)0x0 }, 238231200Smm { ISFUNC, (rl_command_func_t *)0x0 }, 239231200Smm { ISFUNC, (rl_command_func_t *)0x0 }, 240231200Smm { ISFUNC, (rl_command_func_t *)0x0 }, 241231200Smm { ISFUNC, (rl_command_func_t *)0x0 }, 242231200Smm { ISFUNC, (rl_command_func_t *)0x0 }, 243231200Smm { ISFUNC, (rl_command_func_t *)0x0 }, 244231200Smm { ISFUNC, (rl_command_func_t *)0x0 }, 245231200Smm { ISFUNC, (rl_command_func_t *)0x0 }, 246231200Smm { ISFUNC, (rl_command_func_t *)0x0 }, 247231200Smm { ISFUNC, (rl_command_func_t *)0x0 }, 248231200Smm { ISFUNC, (rl_command_func_t *)0x0 }, 249231200Smm { ISFUNC, (rl_command_func_t *)0x0 }, 250231200Smm { ISFUNC, (rl_command_func_t *)0x0 }, 251231200Smm { ISFUNC, (rl_command_func_t *)0x0 }, 252231200Smm { ISFUNC, (rl_command_func_t *)0x0 }, 253231200Smm { ISFUNC, (rl_command_func_t *)0x0 }, 254231200Smm { ISFUNC, (rl_command_func_t *)0x0 }, 255231200Smm { ISFUNC, (rl_command_func_t *)0x0 }, 256231200Smm { ISFUNC, (rl_command_func_t *)0x0 }, 257231200Smm { ISFUNC, (rl_command_func_t *)0x0 }, 258231200Smm { ISFUNC, (rl_command_func_t *)0x0 }, 259231200Smm { ISFUNC, (rl_command_func_t *)0x0 }, 260231200Smm { ISFUNC, (rl_command_func_t *)0x0 }, 261231200Smm { ISFUNC, (rl_command_func_t *)0x0 }, 262231200Smm { ISFUNC, (rl_command_func_t *)0x0 }, 263231200Smm { ISFUNC, (rl_command_func_t *)0x0 }, 264231200Smm { ISFUNC, (rl_command_func_t *)0x0 }, 265231200Smm { ISFUNC, (rl_command_func_t *)0x0 }, 266231200Smm { ISFUNC, (rl_command_func_t *)0x0 }, 267231200Smm { ISFUNC, (rl_command_func_t *)0x0 }, 268231200Smm { ISFUNC, (rl_command_func_t *)0x0 }, 269231200Smm { ISFUNC, (rl_command_func_t *)0x0 }, 270231200Smm { ISFUNC, (rl_command_func_t *)0x0 }, 271231200Smm { ISFUNC, (rl_command_func_t *)0x0 }, 272231200Smm { ISFUNC, (rl_command_func_t *)0x0 }, 273231200Smm { ISFUNC, (rl_command_func_t *)0x0 }, 274231200Smm { ISFUNC, (rl_command_func_t *)0x0 }, 275231200Smm { ISFUNC, (rl_command_func_t *)0x0 }, 276231200Smm { ISFUNC, (rl_command_func_t *)0x0 }, 277231200Smm { ISFUNC, (rl_command_func_t *)0x0 }, 278231200Smm { ISFUNC, (rl_command_func_t *)0x0 }, 279231200Smm { ISFUNC, (rl_command_func_t *)0x0 }, 280231200Smm { ISFUNC, (rl_command_func_t *)0x0 }, 281231200Smm { ISFUNC, (rl_command_func_t *)0x0 }, 282231200Smm { ISFUNC, (rl_command_func_t *)0x0 }, 283231200Smm { ISFUNC, (rl_command_func_t *)0x0 }, 284231200Smm { ISFUNC, (rl_command_func_t *)0x0 }, 285231200Smm { ISFUNC, (rl_command_func_t *)0x0 }, 286231200Smm { ISFUNC, (rl_command_func_t *)0x0 }, 287231200Smm { ISFUNC, (rl_command_func_t *)0x0 }, 288231200Smm { ISFUNC, (rl_command_func_t *)0x0 }, 289231200Smm { ISFUNC, (rl_command_func_t *)0x0 }, 290231200Smm { ISFUNC, (rl_command_func_t *)0x0 }, 291231200Smm { ISFUNC, (rl_command_func_t *)0x0 }, 292231200Smm { ISFUNC, (rl_command_func_t *)0x0 }, 293231200Smm { ISFUNC, (rl_command_func_t *)0x0 }, 294231200Smm { ISFUNC, (rl_command_func_t *)0x0 }, 295231200Smm { ISFUNC, (rl_command_func_t *)0x0 }, 296231200Smm { ISFUNC, (rl_command_func_t *)0x0 }, 297231200Smm { ISFUNC, (rl_command_func_t *)0x0 }, 298231200Smm { ISFUNC, (rl_command_func_t *)0x0 }, 299231200Smm { ISFUNC, (rl_command_func_t *)0x0 }, 300231200Smm { ISFUNC, (rl_command_func_t *)0x0 }, 301231200Smm { ISFUNC, (rl_command_func_t *)0x0 }, 302231200Smm { ISFUNC, (rl_command_func_t *)0x0 }, 303231200Smm { ISFUNC, (rl_command_func_t *)0x0 }, 304231200Smm { ISFUNC, (rl_command_func_t *)0x0 }, 305231200Smm { ISFUNC, (rl_command_func_t *)0x0 }, 306231200Smm { ISFUNC, (rl_command_func_t *)0x0 }, 307231200Smm { ISFUNC, (rl_command_func_t *)0x0 }, 308231200Smm { ISFUNC, (rl_command_func_t *)0x0 }, 309231200Smm { ISFUNC, (rl_command_func_t *)0x0 } 310231200Smm#endif /* KEYMAP_SIZE > 128 */ 311231200Smm}; 312231200Smm 313231200Smm 314231200SmmKEYMAP_ENTRY_ARRAY vi_insertion_keymap = { 315231200Smm /* The regular control keys come first. */ 316231200Smm { ISFUNC, (rl_command_func_t *)0x0 }, /* Control-@ */ 317231200Smm { ISFUNC, rl_insert }, /* Control-a */ 318231200Smm { ISFUNC, rl_insert }, /* Control-b */ 319231200Smm { ISFUNC, rl_insert }, /* Control-c */ 320231200Smm { ISFUNC, rl_vi_eof_maybe }, /* Control-d */ 321231200Smm { ISFUNC, rl_insert }, /* Control-e */ 322231200Smm { ISFUNC, rl_insert }, /* Control-f */ 323231200Smm { ISFUNC, rl_insert }, /* Control-g */ 324231200Smm { ISFUNC, rl_rubout }, /* Control-h */ 325231200Smm { ISFUNC, rl_complete }, /* Control-i */ 326231200Smm { ISFUNC, rl_newline }, /* Control-j */ 327231200Smm { ISFUNC, rl_insert }, /* Control-k */ 328231200Smm { ISFUNC, rl_insert }, /* Control-l */ 329231200Smm { ISFUNC, rl_newline }, /* Control-m */ 330231200Smm { ISFUNC, rl_insert }, /* Control-n */ 331231200Smm { ISFUNC, rl_insert }, /* Control-o */ 332231200Smm { ISFUNC, rl_insert }, /* Control-p */ 333231200Smm { ISFUNC, rl_insert }, /* Control-q */ 334231200Smm { ISFUNC, rl_reverse_search_history }, /* Control-r */ 335231200Smm { ISFUNC, rl_forward_search_history }, /* Control-s */ 336231200Smm { ISFUNC, rl_transpose_chars }, /* Control-t */ 337231200Smm { ISFUNC, rl_unix_line_discard }, /* Control-u */ 338231200Smm { ISFUNC, rl_quoted_insert }, /* Control-v */ 339231200Smm { ISFUNC, rl_unix_word_rubout }, /* Control-w */ 340231200Smm { ISFUNC, rl_insert }, /* Control-x */ 341231200Smm { ISFUNC, rl_yank }, /* Control-y */ 342231200Smm { ISFUNC, rl_insert }, /* Control-z */ 343231200Smm 344231200Smm { ISFUNC, rl_vi_movement_mode }, /* Control-[ */ 345231200Smm { ISFUNC, rl_insert }, /* Control-\ */ 346231200Smm { ISFUNC, rl_insert }, /* Control-] */ 347231200Smm { ISFUNC, rl_insert }, /* Control-^ */ 348231200Smm { ISFUNC, rl_vi_undo }, /* Control-_ */ 349231200Smm 350231200Smm /* The start of printing characters. */ 351231200Smm { ISFUNC, rl_insert }, /* SPACE */ 352231200Smm { ISFUNC, rl_insert }, /* ! */ 353231200Smm { ISFUNC, rl_insert }, /* " */ 354231200Smm { ISFUNC, rl_insert }, /* # */ 355231200Smm { ISFUNC, rl_insert }, /* $ */ 356231200Smm { ISFUNC, rl_insert }, /* % */ 357231200Smm { ISFUNC, rl_insert }, /* & */ 358231200Smm { ISFUNC, rl_insert }, /* ' */ 359231200Smm { ISFUNC, rl_insert }, /* ( */ 360231200Smm { ISFUNC, rl_insert }, /* ) */ 361231200Smm { ISFUNC, rl_insert }, /* * */ 362231200Smm { ISFUNC, rl_insert }, /* + */ 363231200Smm { ISFUNC, rl_insert }, /* , */ 364231200Smm { ISFUNC, rl_insert }, /* - */ 365231200Smm { ISFUNC, rl_insert }, /* . */ 366231200Smm { ISFUNC, rl_insert }, /* / */ 367231200Smm 368231200Smm /* Regular digits. */ 369231200Smm { ISFUNC, rl_insert }, /* 0 */ 370231200Smm { ISFUNC, rl_insert }, /* 1 */ 371231200Smm { ISFUNC, rl_insert }, /* 2 */ 372231200Smm { ISFUNC, rl_insert }, /* 3 */ 373231200Smm { ISFUNC, rl_insert }, /* 4 */ 374231200Smm { ISFUNC, rl_insert }, /* 5 */ 375231200Smm { ISFUNC, rl_insert }, /* 6 */ 376231200Smm { ISFUNC, rl_insert }, /* 7 */ 377 { ISFUNC, rl_insert }, /* 8 */ 378 { ISFUNC, rl_insert }, /* 9 */ 379 380 /* A little more punctuation. */ 381 { ISFUNC, rl_insert }, /* : */ 382 { ISFUNC, rl_insert }, /* ; */ 383 { ISFUNC, rl_insert }, /* < */ 384 { ISFUNC, rl_insert }, /* = */ 385 { ISFUNC, rl_insert }, /* > */ 386 { ISFUNC, rl_insert }, /* ? */ 387 { ISFUNC, rl_insert }, /* @ */ 388 389 /* Uppercase alphabet. */ 390 { ISFUNC, rl_insert }, /* A */ 391 { ISFUNC, rl_insert }, /* B */ 392 { ISFUNC, rl_insert }, /* C */ 393 { ISFUNC, rl_insert }, /* D */ 394 { ISFUNC, rl_insert }, /* E */ 395 { ISFUNC, rl_insert }, /* F */ 396 { ISFUNC, rl_insert }, /* G */ 397 { ISFUNC, rl_insert }, /* H */ 398 { ISFUNC, rl_insert }, /* I */ 399 { ISFUNC, rl_insert }, /* J */ 400 { ISFUNC, rl_insert }, /* K */ 401 { ISFUNC, rl_insert }, /* L */ 402 { ISFUNC, rl_insert }, /* M */ 403 { ISFUNC, rl_insert }, /* N */ 404 { ISFUNC, rl_insert }, /* O */ 405 { ISFUNC, rl_insert }, /* P */ 406 { ISFUNC, rl_insert }, /* Q */ 407 { ISFUNC, rl_insert }, /* R */ 408 { ISFUNC, rl_insert }, /* S */ 409 { ISFUNC, rl_insert }, /* T */ 410 { ISFUNC, rl_insert }, /* U */ 411 { ISFUNC, rl_insert }, /* V */ 412 { ISFUNC, rl_insert }, /* W */ 413 { ISFUNC, rl_insert }, /* X */ 414 { ISFUNC, rl_insert }, /* Y */ 415 { ISFUNC, rl_insert }, /* Z */ 416 417 /* Some more punctuation. */ 418 { ISFUNC, rl_insert }, /* [ */ 419 { ISFUNC, rl_insert }, /* \ */ 420 { ISFUNC, rl_insert }, /* ] */ 421 { ISFUNC, rl_insert }, /* ^ */ 422 { ISFUNC, rl_insert }, /* _ */ 423 { ISFUNC, rl_insert }, /* ` */ 424 425 /* Lowercase alphabet. */ 426 { ISFUNC, rl_insert }, /* a */ 427 { ISFUNC, rl_insert }, /* b */ 428 { ISFUNC, rl_insert }, /* c */ 429 { ISFUNC, rl_insert }, /* d */ 430 { ISFUNC, rl_insert }, /* e */ 431 { ISFUNC, rl_insert }, /* f */ 432 { ISFUNC, rl_insert }, /* g */ 433 { ISFUNC, rl_insert }, /* h */ 434 { ISFUNC, rl_insert }, /* i */ 435 { ISFUNC, rl_insert }, /* j */ 436 { ISFUNC, rl_insert }, /* k */ 437 { ISFUNC, rl_insert }, /* l */ 438 { ISFUNC, rl_insert }, /* m */ 439 { ISFUNC, rl_insert }, /* n */ 440 { ISFUNC, rl_insert }, /* o */ 441 { ISFUNC, rl_insert }, /* p */ 442 { ISFUNC, rl_insert }, /* q */ 443 { ISFUNC, rl_insert }, /* r */ 444 { ISFUNC, rl_insert }, /* s */ 445 { ISFUNC, rl_insert }, /* t */ 446 { ISFUNC, rl_insert }, /* u */ 447 { ISFUNC, rl_insert }, /* v */ 448 { ISFUNC, rl_insert }, /* w */ 449 { ISFUNC, rl_insert }, /* x */ 450 { ISFUNC, rl_insert }, /* y */ 451 { ISFUNC, rl_insert }, /* z */ 452 453 /* Final punctuation. */ 454 { ISFUNC, rl_insert }, /* { */ 455 { ISFUNC, rl_insert }, /* | */ 456 { ISFUNC, rl_insert }, /* } */ 457 { ISFUNC, rl_insert }, /* ~ */ 458 { ISFUNC, rl_rubout }, /* RUBOUT */ 459 460#if KEYMAP_SIZE > 128 461 /* Pure 8-bit characters (128 - 159). 462 These might be used in some 463 character sets. */ 464 { ISFUNC, rl_insert }, /* ? */ 465 { ISFUNC, rl_insert }, /* ? */ 466 { ISFUNC, rl_insert }, /* ? */ 467 { ISFUNC, rl_insert }, /* ? */ 468 { ISFUNC, rl_insert }, /* ? */ 469 { ISFUNC, rl_insert }, /* ? */ 470 { ISFUNC, rl_insert }, /* ? */ 471 { ISFUNC, rl_insert }, /* ? */ 472 { ISFUNC, rl_insert }, /* ? */ 473 { ISFUNC, rl_insert }, /* ? */ 474 { ISFUNC, rl_insert }, /* ? */ 475 { ISFUNC, rl_insert }, /* ? */ 476 { ISFUNC, rl_insert }, /* ? */ 477 { ISFUNC, rl_insert }, /* ? */ 478 { ISFUNC, rl_insert }, /* ? */ 479 { ISFUNC, rl_insert }, /* ? */ 480 { ISFUNC, rl_insert }, /* ? */ 481 { ISFUNC, rl_insert }, /* ? */ 482 { ISFUNC, rl_insert }, /* ? */ 483 { ISFUNC, rl_insert }, /* ? */ 484 { ISFUNC, rl_insert }, /* ? */ 485 { ISFUNC, rl_insert }, /* ? */ 486 { ISFUNC, rl_insert }, /* ? */ 487 { ISFUNC, rl_insert }, /* ? */ 488 { ISFUNC, rl_insert }, /* ? */ 489 { ISFUNC, rl_insert }, /* ? */ 490 { ISFUNC, rl_insert }, /* ? */ 491 { ISFUNC, rl_insert }, /* ? */ 492 { ISFUNC, rl_insert }, /* ? */ 493 { ISFUNC, rl_insert }, /* ? */ 494 { ISFUNC, rl_insert }, /* ? */ 495 { ISFUNC, rl_insert }, /* ? */ 496 497 /* ISO Latin-1 characters (160 - 255) */ 498 { ISFUNC, rl_insert }, /* No-break space */ 499 { ISFUNC, rl_insert }, /* Inverted exclamation mark */ 500 { ISFUNC, rl_insert }, /* Cent sign */ 501 { ISFUNC, rl_insert }, /* Pound sign */ 502 { ISFUNC, rl_insert }, /* Currency sign */ 503 { ISFUNC, rl_insert }, /* Yen sign */ 504 { ISFUNC, rl_insert }, /* Broken bar */ 505 { ISFUNC, rl_insert }, /* Section sign */ 506 { ISFUNC, rl_insert }, /* Diaeresis */ 507 { ISFUNC, rl_insert }, /* Copyright sign */ 508 { ISFUNC, rl_insert }, /* Feminine ordinal indicator */ 509 { ISFUNC, rl_insert }, /* Left pointing double angle quotation mark */ 510 { ISFUNC, rl_insert }, /* Not sign */ 511 { ISFUNC, rl_insert }, /* Soft hyphen */ 512 { ISFUNC, rl_insert }, /* Registered sign */ 513 { ISFUNC, rl_insert }, /* Macron */ 514 { ISFUNC, rl_insert }, /* Degree sign */ 515 { ISFUNC, rl_insert }, /* Plus-minus sign */ 516 { ISFUNC, rl_insert }, /* Superscript two */ 517 { ISFUNC, rl_insert }, /* Superscript three */ 518 { ISFUNC, rl_insert }, /* Acute accent */ 519 { ISFUNC, rl_insert }, /* Micro sign */ 520 { ISFUNC, rl_insert }, /* Pilcrow sign */ 521 { ISFUNC, rl_insert }, /* Middle dot */ 522 { ISFUNC, rl_insert }, /* Cedilla */ 523 { ISFUNC, rl_insert }, /* Superscript one */ 524 { ISFUNC, rl_insert }, /* Masculine ordinal indicator */ 525 { ISFUNC, rl_insert }, /* Right pointing double angle quotation mark */ 526 { ISFUNC, rl_insert }, /* Vulgar fraction one quarter */ 527 { ISFUNC, rl_insert }, /* Vulgar fraction one half */ 528 { ISFUNC, rl_insert }, /* Vulgar fraction three quarters */ 529 { ISFUNC, rl_insert }, /* Inverted questionk mark */ 530 { ISFUNC, rl_insert }, /* Latin capital letter a with grave */ 531 { ISFUNC, rl_insert }, /* Latin capital letter a with acute */ 532 { ISFUNC, rl_insert }, /* Latin capital letter a with circumflex */ 533 { ISFUNC, rl_insert }, /* Latin capital letter a with tilde */ 534 { ISFUNC, rl_insert }, /* Latin capital letter a with diaeresis */ 535 { ISFUNC, rl_insert }, /* Latin capital letter a with ring above */ 536 { ISFUNC, rl_insert }, /* Latin capital letter ae */ 537 { ISFUNC, rl_insert }, /* Latin capital letter c with cedilla */ 538 { ISFUNC, rl_insert }, /* Latin capital letter e with grave */ 539 { ISFUNC, rl_insert }, /* Latin capital letter e with acute */ 540 { ISFUNC, rl_insert }, /* Latin capital letter e with circumflex */ 541 { ISFUNC, rl_insert }, /* Latin capital letter e with diaeresis */ 542 { ISFUNC, rl_insert }, /* Latin capital letter i with grave */ 543 { ISFUNC, rl_insert }, /* Latin capital letter i with acute */ 544 { ISFUNC, rl_insert }, /* Latin capital letter i with circumflex */ 545 { ISFUNC, rl_insert }, /* Latin capital letter i with diaeresis */ 546 { ISFUNC, rl_insert }, /* Latin capital letter eth (Icelandic) */ 547 { ISFUNC, rl_insert }, /* Latin capital letter n with tilde */ 548 { ISFUNC, rl_insert }, /* Latin capital letter o with grave */ 549 { ISFUNC, rl_insert }, /* Latin capital letter o with acute */ 550 { ISFUNC, rl_insert }, /* Latin capital letter o with circumflex */ 551 { ISFUNC, rl_insert }, /* Latin capital letter o with tilde */ 552 { ISFUNC, rl_insert }, /* Latin capital letter o with diaeresis */ 553 { ISFUNC, rl_insert }, /* Multiplication sign */ 554 { ISFUNC, rl_insert }, /* Latin capital letter o with stroke */ 555 { ISFUNC, rl_insert }, /* Latin capital letter u with grave */ 556 { ISFUNC, rl_insert }, /* Latin capital letter u with acute */ 557 { ISFUNC, rl_insert }, /* Latin capital letter u with circumflex */ 558 { ISFUNC, rl_insert }, /* Latin capital letter u with diaeresis */ 559 { ISFUNC, rl_insert }, /* Latin capital letter Y with acute */ 560 { ISFUNC, rl_insert }, /* Latin capital letter thorn (Icelandic) */ 561 { ISFUNC, rl_insert }, /* Latin small letter sharp s (German) */ 562 { ISFUNC, rl_insert }, /* Latin small letter a with grave */ 563 { ISFUNC, rl_insert }, /* Latin small letter a with acute */ 564 { ISFUNC, rl_insert }, /* Latin small letter a with circumflex */ 565 { ISFUNC, rl_insert }, /* Latin small letter a with tilde */ 566 { ISFUNC, rl_insert }, /* Latin small letter a with diaeresis */ 567 { ISFUNC, rl_insert }, /* Latin small letter a with ring above */ 568 { ISFUNC, rl_insert }, /* Latin small letter ae */ 569 { ISFUNC, rl_insert }, /* Latin small letter c with cedilla */ 570 { ISFUNC, rl_insert }, /* Latin small letter e with grave */ 571 { ISFUNC, rl_insert }, /* Latin small letter e with acute */ 572 { ISFUNC, rl_insert }, /* Latin small letter e with circumflex */ 573 { ISFUNC, rl_insert }, /* Latin small letter e with diaeresis */ 574 { ISFUNC, rl_insert }, /* Latin small letter i with grave */ 575 { ISFUNC, rl_insert }, /* Latin small letter i with acute */ 576 { ISFUNC, rl_insert }, /* Latin small letter i with circumflex */ 577 { ISFUNC, rl_insert }, /* Latin small letter i with diaeresis */ 578 { ISFUNC, rl_insert }, /* Latin small letter eth (Icelandic) */ 579 { ISFUNC, rl_insert }, /* Latin small letter n with tilde */ 580 { ISFUNC, rl_insert }, /* Latin small letter o with grave */ 581 { ISFUNC, rl_insert }, /* Latin small letter o with acute */ 582 { ISFUNC, rl_insert }, /* Latin small letter o with circumflex */ 583 { ISFUNC, rl_insert }, /* Latin small letter o with tilde */ 584 { ISFUNC, rl_insert }, /* Latin small letter o with diaeresis */ 585 { ISFUNC, rl_insert }, /* Division sign */ 586 { ISFUNC, rl_insert }, /* Latin small letter o with stroke */ 587 { ISFUNC, rl_insert }, /* Latin small letter u with grave */ 588 { ISFUNC, rl_insert }, /* Latin small letter u with acute */ 589 { ISFUNC, rl_insert }, /* Latin small letter u with circumflex */ 590 { ISFUNC, rl_insert }, /* Latin small letter u with diaeresis */ 591 { ISFUNC, rl_insert }, /* Latin small letter y with acute */ 592 { ISFUNC, rl_insert }, /* Latin small letter thorn (Icelandic) */ 593 { ISFUNC, rl_insert } /* Latin small letter y with diaeresis */ 594#endif /* KEYMAP_SIZE > 128 */ 595}; 596 597/* Unused for the time being. */ 598#if 0 599KEYMAP_ENTRY_ARRAY vi_escape_keymap = { 600 /* The regular control keys come first. */ 601 { ISFUNC, (rl_command_func_t *)0x0 }, /* Control-@ */ 602 { ISFUNC, (rl_command_func_t *)0x0 }, /* Control-a */ 603 { ISFUNC, (rl_command_func_t *)0x0 }, /* Control-b */ 604 { ISFUNC, (rl_command_func_t *)0x0 }, /* Control-c */ 605 { ISFUNC, (rl_command_func_t *)0x0 }, /* Control-d */ 606 { ISFUNC, (rl_command_func_t *)0x0 }, /* Control-e */ 607 { ISFUNC, (rl_command_func_t *)0x0 }, /* Control-f */ 608 { ISFUNC, (rl_command_func_t *)0x0 }, /* Control-g */ 609 { ISFUNC, (rl_command_func_t *)0x0 }, /* Control-h */ 610 { ISFUNC, rl_tab_insert}, /* Control-i */ 611 { ISFUNC, rl_emacs_editing_mode}, /* Control-j */ 612 { ISFUNC, rl_kill_line }, /* Control-k */ 613 { ISFUNC, (rl_command_func_t *)0x0 }, /* Control-l */ 614 { ISFUNC, rl_emacs_editing_mode}, /* Control-m */ 615 { ISFUNC, (rl_command_func_t *)0x0 }, /* Control-n */ 616 { ISFUNC, (rl_command_func_t *)0x0 }, /* Control-o */ 617 { ISFUNC, (rl_command_func_t *)0x0 }, /* Control-p */ 618 { ISFUNC, (rl_command_func_t *)0x0 }, /* Control-q */ 619 { ISFUNC, (rl_command_func_t *)0x0 }, /* Control-r */ 620 { ISFUNC, (rl_command_func_t *)0x0 }, /* Control-s */ 621 { ISFUNC, (rl_command_func_t *)0x0 }, /* Control-t */ 622 { ISFUNC, (rl_command_func_t *)0x0 }, /* Control-u */ 623 { ISFUNC, (rl_command_func_t *)0x0 }, /* Control-v */ 624 { ISFUNC, (rl_command_func_t *)0x0 }, /* Control-w */ 625 { ISFUNC, (rl_command_func_t *)0x0 }, /* Control-x */ 626 { ISFUNC, (rl_command_func_t *)0x0 }, /* Control-y */ 627 { ISFUNC, (rl_command_func_t *)0x0 }, /* Control-z */ 628 629 { ISFUNC, rl_vi_movement_mode }, /* Control-[ */ 630 { ISFUNC, (rl_command_func_t *)0x0 }, /* Control-\ */ 631 { ISFUNC, (rl_command_func_t *)0x0 }, /* Control-] */ 632 { ISFUNC, (rl_command_func_t *)0x0 }, /* Control-^ */ 633 { ISFUNC, rl_vi_undo }, /* Control-_ */ 634 635 /* The start of printing characters. */ 636 { ISFUNC, (rl_command_func_t *)0x0 }, /* SPACE */ 637 { ISFUNC, (rl_command_func_t *)0x0 }, /* ! */ 638 { ISFUNC, (rl_command_func_t *)0x0 }, /* " */ 639 { ISFUNC, (rl_command_func_t *)0x0 }, /* # */ 640 { ISFUNC, (rl_command_func_t *)0x0 }, /* $ */ 641 { ISFUNC, (rl_command_func_t *)0x0 }, /* % */ 642 { ISFUNC, (rl_command_func_t *)0x0 }, /* & */ 643 { ISFUNC, (rl_command_func_t *)0x0 }, /* ' */ 644 { ISFUNC, (rl_command_func_t *)0x0 }, /* ( */ 645 { ISFUNC, (rl_command_func_t *)0x0 }, /* ) */ 646 { ISFUNC, (rl_command_func_t *)0x0 }, /* * */ 647 { ISFUNC, (rl_command_func_t *)0x0 }, /* + */ 648 { ISFUNC, (rl_command_func_t *)0x0 }, /* , */ 649 { ISFUNC, (rl_command_func_t *)0x0 }, /* - */ 650 { ISFUNC, (rl_command_func_t *)0x0 }, /* . */ 651 { ISFUNC, (rl_command_func_t *)0x0 }, /* / */ 652 653 /* Regular digits. */ 654 { ISFUNC, rl_vi_arg_digit }, /* 0 */ 655 { ISFUNC, rl_vi_arg_digit }, /* 1 */ 656 { ISFUNC, rl_vi_arg_digit }, /* 2 */ 657 { ISFUNC, rl_vi_arg_digit }, /* 3 */ 658 { ISFUNC, rl_vi_arg_digit }, /* 4 */ 659 { ISFUNC, rl_vi_arg_digit }, /* 5 */ 660 { ISFUNC, rl_vi_arg_digit }, /* 6 */ 661 { ISFUNC, rl_vi_arg_digit }, /* 7 */ 662 { ISFUNC, rl_vi_arg_digit }, /* 8 */ 663 { ISFUNC, rl_vi_arg_digit }, /* 9 */ 664 665 /* A little more punctuation. */ 666 { ISFUNC, (rl_command_func_t *)0x0 }, /* : */ 667 { ISFUNC, (rl_command_func_t *)0x0 }, /* ; */ 668 { ISFUNC, (rl_command_func_t *)0x0 }, /* < */ 669 { ISFUNC, (rl_command_func_t *)0x0 }, /* = */ 670 { ISFUNC, (rl_command_func_t *)0x0 }, /* > */ 671 { ISFUNC, (rl_command_func_t *)0x0 }, /* ? */ 672 { ISFUNC, (rl_command_func_t *)0x0 }, /* @ */ 673 674 /* Uppercase alphabet. */ 675 { ISFUNC, rl_do_lowercase_version }, /* A */ 676 { ISFUNC, rl_do_lowercase_version }, /* B */ 677 { ISFUNC, rl_do_lowercase_version }, /* C */ 678 { ISFUNC, rl_do_lowercase_version }, /* D */ 679 { ISFUNC, rl_do_lowercase_version }, /* E */ 680 { ISFUNC, rl_do_lowercase_version }, /* F */ 681 { ISFUNC, rl_do_lowercase_version }, /* G */ 682 { ISFUNC, rl_do_lowercase_version }, /* H */ 683 { ISFUNC, rl_do_lowercase_version }, /* I */ 684 { ISFUNC, rl_do_lowercase_version }, /* J */ 685 { ISFUNC, rl_do_lowercase_version }, /* K */ 686 { ISFUNC, rl_do_lowercase_version }, /* L */ 687 { ISFUNC, rl_do_lowercase_version }, /* M */ 688 { ISFUNC, rl_do_lowercase_version }, /* N */ 689 { ISFUNC, rl_do_lowercase_version }, /* O */ 690 { ISFUNC, rl_do_lowercase_version }, /* P */ 691 { ISFUNC, rl_do_lowercase_version }, /* Q */ 692 { ISFUNC, rl_do_lowercase_version }, /* R */ 693 { ISFUNC, rl_do_lowercase_version }, /* S */ 694 { ISFUNC, rl_do_lowercase_version }, /* T */ 695 { ISFUNC, rl_do_lowercase_version }, /* U */ 696 { ISFUNC, rl_do_lowercase_version }, /* V */ 697 { ISFUNC, rl_do_lowercase_version }, /* W */ 698 { ISFUNC, rl_do_lowercase_version }, /* X */ 699 { ISFUNC, rl_do_lowercase_version }, /* Y */ 700 { ISFUNC, rl_do_lowercase_version }, /* Z */ 701 702 /* Some more punctuation. */ 703 { ISFUNC, rl_arrow_keys }, /* [ */ 704 { ISFUNC, (rl_command_func_t *)0x0 }, /* \ */ 705 { ISFUNC, (rl_command_func_t *)0x0 }, /* ] */ 706 { ISFUNC, (rl_command_func_t *)0x0 }, /* ^ */ 707 { ISFUNC, (rl_command_func_t *)0x0 }, /* _ */ 708 { ISFUNC, (rl_command_func_t *)0x0 }, /* ` */ 709 710 /* Lowercase alphabet. */ 711 { ISFUNC, (rl_command_func_t *)0x0 }, /* a */ 712 { ISFUNC, (rl_command_func_t *)0x0 }, /* b */ 713 { ISFUNC, (rl_command_func_t *)0x0 }, /* c */ 714 { ISFUNC, (rl_command_func_t *)0x0 }, /* d */ 715 { ISFUNC, (rl_command_func_t *)0x0 }, /* e */ 716 { ISFUNC, (rl_command_func_t *)0x0 }, /* f */ 717 { ISFUNC, (rl_command_func_t *)0x0 }, /* g */ 718 { ISFUNC, (rl_command_func_t *)0x0 }, /* h */ 719 { ISFUNC, (rl_command_func_t *)0x0 }, /* i */ 720 { ISFUNC, (rl_command_func_t *)0x0 }, /* j */ 721 { ISFUNC, (rl_command_func_t *)0x0 }, /* k */ 722 { ISFUNC, (rl_command_func_t *)0x0 }, /* l */ 723 { ISFUNC, (rl_command_func_t *)0x0 }, /* m */ 724 { ISFUNC, (rl_command_func_t *)0x0 }, /* n */ 725 { ISFUNC, rl_arrow_keys }, /* o */ 726 { ISFUNC, (rl_command_func_t *)0x0 }, /* p */ 727 { ISFUNC, (rl_command_func_t *)0x0 }, /* q */ 728 { ISFUNC, (rl_command_func_t *)0x0 }, /* r */ 729 { ISFUNC, (rl_command_func_t *)0x0 }, /* s */ 730 { ISFUNC, (rl_command_func_t *)0x0 }, /* t */ 731 { ISFUNC, (rl_command_func_t *)0x0 }, /* u */ 732 { ISFUNC, (rl_command_func_t *)0x0 }, /* v */ 733 { ISFUNC, (rl_command_func_t *)0x0 }, /* w */ 734 { ISFUNC, (rl_command_func_t *)0x0 }, /* x */ 735 { ISFUNC, (rl_command_func_t *)0x0 }, /* y */ 736 { ISFUNC, (rl_command_func_t *)0x0 }, /* z */ 737 738 /* Final punctuation. */ 739 { ISFUNC, (rl_command_func_t *)0x0 }, /* { */ 740 { ISFUNC, (rl_command_func_t *)0x0 }, /* | */ 741 { ISFUNC, (rl_command_func_t *)0x0 }, /* } */ 742 { ISFUNC, (rl_command_func_t *)0x0 }, /* ~ */ 743 { ISFUNC, rl_backward_kill_word }, /* RUBOUT */ 744 745#if KEYMAP_SIZE > 128 746 /* Undefined keys. */ 747 { ISFUNC, (rl_command_func_t *)0x0 }, 748 { ISFUNC, (rl_command_func_t *)0x0 }, 749 { ISFUNC, (rl_command_func_t *)0x0 }, 750 { ISFUNC, (rl_command_func_t *)0x0 }, 751 { ISFUNC, (rl_command_func_t *)0x0 }, 752 { ISFUNC, (rl_command_func_t *)0x0 }, 753 { ISFUNC, (rl_command_func_t *)0x0 }, 754 { ISFUNC, (rl_command_func_t *)0x0 }, 755 { ISFUNC, (rl_command_func_t *)0x0 }, 756 { ISFUNC, (rl_command_func_t *)0x0 }, 757 { ISFUNC, (rl_command_func_t *)0x0 }, 758 { ISFUNC, (rl_command_func_t *)0x0 }, 759 { ISFUNC, (rl_command_func_t *)0x0 }, 760 { ISFUNC, (rl_command_func_t *)0x0 }, 761 { ISFUNC, (rl_command_func_t *)0x0 }, 762 { ISFUNC, (rl_command_func_t *)0x0 }, 763 { ISFUNC, (rl_command_func_t *)0x0 }, 764 { ISFUNC, (rl_command_func_t *)0x0 }, 765 { ISFUNC, (rl_command_func_t *)0x0 }, 766 { ISFUNC, (rl_command_func_t *)0x0 }, 767 { ISFUNC, (rl_command_func_t *)0x0 }, 768 { ISFUNC, (rl_command_func_t *)0x0 }, 769 { ISFUNC, (rl_command_func_t *)0x0 }, 770 { ISFUNC, (rl_command_func_t *)0x0 }, 771 { ISFUNC, (rl_command_func_t *)0x0 }, 772 { ISFUNC, (rl_command_func_t *)0x0 }, 773 { ISFUNC, (rl_command_func_t *)0x0 }, 774 { ISFUNC, (rl_command_func_t *)0x0 }, 775 { ISFUNC, (rl_command_func_t *)0x0 }, 776 { ISFUNC, (rl_command_func_t *)0x0 }, 777 { ISFUNC, (rl_command_func_t *)0x0 }, 778 { ISFUNC, (rl_command_func_t *)0x0 }, 779 { ISFUNC, (rl_command_func_t *)0x0 }, 780 { ISFUNC, (rl_command_func_t *)0x0 }, 781 { ISFUNC, (rl_command_func_t *)0x0 }, 782 { ISFUNC, (rl_command_func_t *)0x0 }, 783 { ISFUNC, (rl_command_func_t *)0x0 }, 784 { ISFUNC, (rl_command_func_t *)0x0 }, 785 { ISFUNC, (rl_command_func_t *)0x0 }, 786 { ISFUNC, (rl_command_func_t *)0x0 }, 787 { ISFUNC, (rl_command_func_t *)0x0 }, 788 { ISFUNC, (rl_command_func_t *)0x0 }, 789 { ISFUNC, (rl_command_func_t *)0x0 }, 790 { ISFUNC, (rl_command_func_t *)0x0 }, 791 { ISFUNC, (rl_command_func_t *)0x0 }, 792 { ISFUNC, (rl_command_func_t *)0x0 }, 793 { ISFUNC, (rl_command_func_t *)0x0 }, 794 { ISFUNC, (rl_command_func_t *)0x0 }, 795 { ISFUNC, (rl_command_func_t *)0x0 }, 796 { ISFUNC, (rl_command_func_t *)0x0 }, 797 { ISFUNC, (rl_command_func_t *)0x0 }, 798 { ISFUNC, (rl_command_func_t *)0x0 }, 799 { ISFUNC, (rl_command_func_t *)0x0 }, 800 { ISFUNC, (rl_command_func_t *)0x0 }, 801 { ISFUNC, (rl_command_func_t *)0x0 }, 802 { ISFUNC, (rl_command_func_t *)0x0 }, 803 { ISFUNC, (rl_command_func_t *)0x0 }, 804 { ISFUNC, (rl_command_func_t *)0x0 }, 805 { ISFUNC, (rl_command_func_t *)0x0 }, 806 { ISFUNC, (rl_command_func_t *)0x0 }, 807 { ISFUNC, (rl_command_func_t *)0x0 }, 808 { ISFUNC, (rl_command_func_t *)0x0 }, 809 { ISFUNC, (rl_command_func_t *)0x0 }, 810 { ISFUNC, (rl_command_func_t *)0x0 }, 811 { ISFUNC, (rl_command_func_t *)0x0 }, 812 { ISFUNC, (rl_command_func_t *)0x0 }, 813 { ISFUNC, (rl_command_func_t *)0x0 }, 814 { ISFUNC, (rl_command_func_t *)0x0 }, 815 { ISFUNC, (rl_command_func_t *)0x0 }, 816 { ISFUNC, (rl_command_func_t *)0x0 }, 817 { ISFUNC, (rl_command_func_t *)0x0 }, 818 { ISFUNC, (rl_command_func_t *)0x0 }, 819 { ISFUNC, (rl_command_func_t *)0x0 }, 820 { ISFUNC, (rl_command_func_t *)0x0 }, 821 { ISFUNC, (rl_command_func_t *)0x0 }, 822 { ISFUNC, (rl_command_func_t *)0x0 }, 823 { ISFUNC, (rl_command_func_t *)0x0 }, 824 { ISFUNC, (rl_command_func_t *)0x0 }, 825 { ISFUNC, (rl_command_func_t *)0x0 }, 826 { ISFUNC, (rl_command_func_t *)0x0 }, 827 { ISFUNC, (rl_command_func_t *)0x0 }, 828 { ISFUNC, (rl_command_func_t *)0x0 }, 829 { ISFUNC, (rl_command_func_t *)0x0 }, 830 { ISFUNC, (rl_command_func_t *)0x0 }, 831 { ISFUNC, (rl_command_func_t *)0x0 }, 832 { ISFUNC, (rl_command_func_t *)0x0 }, 833 { ISFUNC, (rl_command_func_t *)0x0 }, 834 { ISFUNC, (rl_command_func_t *)0x0 }, 835 { ISFUNC, (rl_command_func_t *)0x0 }, 836 { ISFUNC, (rl_command_func_t *)0x0 }, 837 { ISFUNC, (rl_command_func_t *)0x0 }, 838 { ISFUNC, (rl_command_func_t *)0x0 }, 839 { ISFUNC, (rl_command_func_t *)0x0 }, 840 { ISFUNC, (rl_command_func_t *)0x0 }, 841 { ISFUNC, (rl_command_func_t *)0x0 }, 842 { ISFUNC, (rl_command_func_t *)0x0 }, 843 { ISFUNC, (rl_command_func_t *)0x0 }, 844 { ISFUNC, (rl_command_func_t *)0x0 }, 845 { ISFUNC, (rl_command_func_t *)0x0 }, 846 { ISFUNC, (rl_command_func_t *)0x0 }, 847 { ISFUNC, (rl_command_func_t *)0x0 }, 848 { ISFUNC, (rl_command_func_t *)0x0 }, 849 { ISFUNC, (rl_command_func_t *)0x0 }, 850 { ISFUNC, (rl_command_func_t *)0x0 }, 851 { ISFUNC, (rl_command_func_t *)0x0 }, 852 { ISFUNC, (rl_command_func_t *)0x0 }, 853 { ISFUNC, (rl_command_func_t *)0x0 }, 854 { ISFUNC, (rl_command_func_t *)0x0 }, 855 { ISFUNC, (rl_command_func_t *)0x0 }, 856 { ISFUNC, (rl_command_func_t *)0x0 }, 857 { ISFUNC, (rl_command_func_t *)0x0 }, 858 { ISFUNC, (rl_command_func_t *)0x0 }, 859 { ISFUNC, (rl_command_func_t *)0x0 }, 860 { ISFUNC, (rl_command_func_t *)0x0 }, 861 { ISFUNC, (rl_command_func_t *)0x0 }, 862 { ISFUNC, (rl_command_func_t *)0x0 }, 863 { ISFUNC, (rl_command_func_t *)0x0 }, 864 { ISFUNC, (rl_command_func_t *)0x0 }, 865 { ISFUNC, (rl_command_func_t *)0x0 }, 866 { ISFUNC, (rl_command_func_t *)0x0 }, 867 { ISFUNC, (rl_command_func_t *)0x0 }, 868 { ISFUNC, (rl_command_func_t *)0x0 }, 869 { ISFUNC, (rl_command_func_t *)0x0 }, 870 { ISFUNC, (rl_command_func_t *)0x0 }, 871 { ISFUNC, (rl_command_func_t *)0x0 }, 872 { ISFUNC, (rl_command_func_t *)0x0 }, 873 { ISFUNC, (rl_command_func_t *)0x0 }, 874 { ISFUNC, (rl_command_func_t *)0x0 } 875#endif /* KEYMAP_SIZE > 128 */ 876}; 877#endif 878