Ticket #1540: shell-keys.diff
File shell-keys.diff, 1.3 KB (added by , 17 years ago) |
---|
-
readline.c
885 885 _rl_keymap = xkeymap; 886 886 } 887 887 888 /* Bind some default keys in the standard keymap. */ 889 static void 890 bind_default_keys_internal () 891 { 892 _rl_bind_if_unbound ("\033[[", rl_end_of_line); 893 _rl_bind_if_unbound ("\033[@", rl_beg_of_line); 894 _rl_bind_if_unbound ("\033[5~", rl_history_search_backward); 895 _rl_bind_if_unbound ("\033[6~", rl_history_search_forward); 896 } 897 888 898 /* Try and bind the common arrow key prefixes after giving termcap and 889 899 the inputrc file a chance to bind them and create `real' keymaps 890 900 for the arrow key prefix. */ 891 901 static void 892 902 bind_arrow_keys () 893 903 { 904 bind_default_keys_internal (); 894 905 bind_arrow_keys_internal (emacs_standard_keymap); 895 906 896 907 #if defined (VI_MODE) -
keymaps.c
105 105 newmap[i].function = rl_insert; 106 106 107 107 newmap[TAB].function = rl_insert; 108 newmap[RUBOUT].function = rl_ rubout; /* RUBOUT == 127 */108 newmap[RUBOUT].function = rl_delete; /* RUBOUT == 127 */ 109 109 newmap[CTRL('H')].function = rl_rubout; 110 110 111 111 #if KEYMAP_SIZE > 128