Lines Matching refs:key

123    so functions can find out whether they were called from a key binding
616 _rl_subseq_getchar (key)
617 int key;
621 if (key == ESC)
626 if (key == ESC)
685 another key, and dispatch into that map. */
687 _rl_dispatch (key, map)
688 register int key;
692 return _rl_dispatch_subseq (key, map, 0);
696 _rl_dispatch_subseq (key, map, got_subseq)
697 register int key;
708 if (META_CHAR (key) && _rl_convert_meta_chars_to_ascii)
715 key = UNMETA (key);
717 return (_rl_dispatch (key, map));
725 _rl_add_macro_char (key);
728 switch (map[key].type)
731 func = map[key].function;
736 return (_rl_dispatch (_rl_to_lower (key), map));
742 (*map[key].function)(rl_numeric_arg * rl_arg_sign, key);
749 if (rl_pending_input == 0 && map[key].function != rl_digit_argument)
750 rl_last_func = map[key].function;
757 _rl_unget_char (key);
763 have a matching key, nor was one overridden. This means
766 _rl_unget_char (key);
781 if (map[key].function != 0)
787 will be if an arrow key has been pressed, and, if there's not,
790 if (rl_editing_mode == vi_mode && key == ESC && map == vi_insertion_keymap
792 return (_rl_dispatch (ANYOTHERKEY, FUNCTION_TO_KEYMAP (map, key)));
796 _rl_dispatching_keymap = FUNCTION_TO_KEYMAP (map, key);
812 cxt->okey = key;
824 newkey = _rl_subseq_getchar (key);
832 return _rl_subseq_result (r, map, key, got_subseq);
842 if (map[key].function != 0)
844 macro = savestring ((char *)map[key].function);
852 key != ANYOTHERKEY &&
853 _rl_vi_textmod_command (key))
854 _rl_vi_set_last (key, rl_numeric_arg, rl_arg_sign);
861 _rl_subseq_result (r, map, key, got_subseq)
864 int key, got_subseq;
881 r = _rl_dispatch (_rl_to_lower (key), map);
885 somehow need a keymap with map[key].func == self-insert.
887 nt = m[key].type;
888 nf = m[key].function;
890 m[key].type = type;
891 m[key].function = func;
892 r = _rl_dispatch (key, m);
893 m[key].type = nt;
894 m[key].function = nf;
904 _rl_unget_char (key);
911 _rl_unget_char (key);
956 /* Parsing of key-bindings begins in an enabled state. */
1057 /* Try to bind a common arrow key prefix, if not already bound. */
1060 /* Enable the meta key, if this terminal has one. */
1092 /* Bind some common arrow key sequences in MAP. */
1133 /* Try and bind the common arrow key prefixes after giving termcap and
1135 for the arrow key prefix. */