Lines Matching defs:action

127  * ensure that none of the action functions that normally do access the
209 * the command-mode action which edited the input line.
225 KtAction action; /* The last action function that made a */
346 * External action functions and their callback data are recorded in
351 GlActionFn *fn; /* The function which implements the action */
430 /* either after the current action function */
439 KtAction current_action; /* The action function that is being invoked */
774 * Bind a single control or meta character to an action.
777 char c, const char *action);
987 * After the gl_read_from_file() action has been used to tell gl_get_line()
1222 * Prototype the available action functions.
1340 * Name the available action functions.
1820 gl->vi.repeat.action.fn = 0;
1821 gl->vi.repeat.action.data = 0;
1965 * of external action functions.
2102 * Bind a control or meta character to an action.
2109 * action const char * The action name to bind the key to.
2115 const char *action)
2137 if(_kt_set_keybinding(gl->bindings, binder, keyseq, action)) {
2819 * If we just ran an action function which temporarily asked for
3708 * This is an action function that implements a user interrupt (eg. ^C).
3717 * This is an action function that implements the abort signal.
3726 * This is an action function that sends a suspend signal (eg. ^Z) to the
3736 * This is an action function that halts output to the terminal.
3745 * This is an action function that resumes halted terminal output.
3754 * This is an action function that allows the next character to be accepted
4187 * This is an action function that moves the buffer cursor one character
4196 * This is an action function that moves the buffer cursor one character
4205 * This is an action function that toggles between overwrite and insert
4215 * This is an action function which moves the cursor to the beginning of
4224 * This is an action function which moves the cursor to the end of
4233 * This is an action function which deletes the entire contents of the
4265 * This is an action function which deletes all characters between the
4296 * This is an action function which deletes all characters between the
4317 * This is an action function which moves the cursor forward by a word.
4326 * This is an action function which moves the cursor forward to the start
4335 * This is an action function which moves the cursor backward by a word.
4430 * This is an action function which deletes character(s) under the
4442 * This is an action function which deletes character(s) under the
4491 * This is an action function which deletes from the cursor to the end
4516 * This is an action function which deletes the word that precedes the
4605 * This is an action function which deletes forward from the cursor up to and
4614 * This is an action function which deletes backward from the cursor back to
4623 * This is an action function which deletes forward from the cursor up to but
4632 * This is an action function which deletes backward from the cursor back to
4641 * This is an action function which deletes to a character specified by a
4651 * This is an action function which deletes to a character specified by a
4661 * This is an action function which converts the characters in the word
4697 * This is an action function which converts the characters in the word
4733 * This is an action function which converts the first character of the
4804 * This is an action function which redraws the current line.
4848 * This is an action function which clears the display and redraws the
4871 * This is an action function which swaps the character under the cursor
4937 * This is an action function which sets a mark at the current cursor
4947 * This is an action function which swaps the mark location for the
4968 * This is an action function which deletes the characters between the
5009 * This is an action function which records the characters between the
5047 * This is an action function which inserts the contents of the cut
5084 * This is an action function which inserts the contents of the cut
5225 * This is the action function that recalls the previous line in the
5240 * Record the key sequence number of this search action.
5275 * This is the action function that recalls the next line in the
5286 * Record the key sequence number of this search action.
5330 * This is the action function that recalls the previous line in the
5347 * Record the key sequence number of this search action.
5385 * This is the action function that recalls the previous line in the
5395 * This is the action function that recalls the next line in the
5409 * Record the key sequence number of this search action.
5446 * This is the action function that recalls the next line in the
5527 * after this action function returns.
5719 * This is the action function that lists glob expansions of the
5781 * "complete_word" action function.
6051 * Bind action functions to the terminal-specific arrow keys
6160 * arrow key bindings, bind the specified action functions to the default
6183 * Lookup the action function of a symbolic arrow-key binding, and bind
6210 * will either be the default action, or a user provided one.
6215 * Get the action function.
6217 KtAction *action = keysym->actions + keysym->binder;
6218 KtKeyFn *fn = action->fn;
6219 void *data = action->data;
6302 * Bind action functions to the terminal-specific arrow keys.
6343 * Bind action functions to the terminal-specific arrow keys.
6478 const char *action = NULL; /* A NULL action removes a keybinding */
6482 action = argv[2];
6488 if(_kt_set_keybinding(gl->bindings, who, keyseq, action)) {
6572 * When this action is triggered, it arranges to temporarily read command
6671 * This is the action function that recalls the oldest line in the
6686 * Record the key sequence number of this search action.
6710 * If a history session is currently in progress, this action function
6726 * Record the key sequence number of this search action.
6750 * This action function is treated specially, in that its count argument
6790 * The newline action function sets gl->endline to tell
6802 * recall by an action function on the next call to gl_get_line().
6811 * The 'repeat' action function sets gl->endline to tell
6969 * This is an action function that switches to editing using emacs bindings
6977 * This is an action function that switches to editing using vi bindings
6985 * This is the action function that switches to insert mode.
7004 * This is an action function that switches to overwrite mode.
7023 * This action function toggles the case of the character under the
7069 * This is the action function which implements the vi-style action which
7081 * This is the action function which implements the vi-style action which
7094 * This is the action function which implements the vi-style action which
7107 * This action function moves the cursor to the column specified by the
7165 * This is an action function which changes all characters between the
7176 * This is an action function which changes all characters between the
7185 * This is an action function which deletes the entire contents of the
7800 * nothing. In order to allow action functions to call other action
7802 * invoking an action, and thereafter once any call to this function
7818 gl->vi.repeat.action = gl->current_action;
7876 gl->vi.repeat.action.fn = gl_vi_undo;
7877 gl->vi.repeat.action.data = NULL;
8022 * This is an action function which rings the terminal bell.
8031 * This is the action function which implements the vi-repeat-change
8032 * action.
8036 int status; /* The return status of the repeated action function */
8041 if(!gl->vi.repeat.action.fn)
8044 * Provide a way for action functions to know whether they are being
8051 status = gl->vi.repeat.action.fn(gl, gl->vi.repeat.count,
8052 gl->vi.repeat.action.data);
8161 * If the cursor is currently over a parenthesis character, this action
8187 int count; /* The repeat count of an action function */
8188 int ret; /* The return value of an action function */
8233 KtAction *action; /* An action function */
8262 * Get the matching action function.
8264 action = keysym->actions + keysym->binder;
8267 * digit-argument action.
8269 if(action->fn == gl_digit_argument) {
8277 gl->current_action = *action;
8285 * Execute the action function. Note the action function can tell
8290 ret = action->fn(gl, count, action->data);
8292 * In server mode, the action will return immediately if it tries to
8305 * If the latest action function wasn't a history action, cancel any
8311 * Reset the repeat count after running action functions.
8313 if(action->fn != gl_digit_argument)
8356 * shouldn't happen, since one isn't allowed to bind action functions
9695 * This is the action function that lists the contents of the history
10383 * If the previous line was entered via the repeat-history action,
10475 gl->vi.repeat.action.fn = 0;
10476 gl->vi.repeat.action.data = 0;
10855 * action, or to change the completion function of an existing
10857 * so that the name of the action be defined before the user's
10870 * list_only int If non-zero, install an action that only lists
10901 * Install the new action while signals are blocked.
10920 KtKeyFn *current_fn; /* An existing action function */
10921 void *current_data; /* The action-function callback data */
10923 * Which action function is desired?
10927 * Is there already an action of the specified name?
10931 * If the action has the same type as the one being requested,
10941 "Illegal attempt to change the type of an existing completion action",
10946 * No existing action has the specified name.
10955 _err_record_msg(gl->err, "Insufficient memory to add completion action",
10965 * Attempt to register the new action.
10974 * Bind the action to a given key-sequence?
10984 * Register an application-provided function as an action function.
10986 * so that the name of the action becomes defined before the user's
10996 * implements the action. This will be invoked
10998 * key-sequence which is bound to this action.
11027 * Install the new action while signals are blocked.
11045 KtKeyFn *current_fn; /* An existing action function */
11046 void *current_data; /* The action-function callback data */
11048 * Get the action function which actually runs the application-provided
11053 * Is there already an action of the specified name?
11057 * If the action has the same type as the one being requested,
11067 "Illegal attempt to change the type of an existing action",
11072 * No existing action has the specified name.
11082 _err_record_msg(gl->err, "Insufficient memory to add completion action",
11092 * Attempt to register the new action.
11101 * Bind the action to a given key-sequence?
11111 * Invoke an action function previously registered by a call to
11116 GlAfterAction status; /* The return value of the action function */
11118 * Get the container of the action function and associated callback data.
11122 * Invoke the action function.
11132 * Finally, check to see what the action function wants us to do next.
11766 * the application. This will invoke the default action of this signal.
12387 * Bind a key sequence to a given action.
12393 * action const char * The name of the action to bind the key to,
12401 const char *action)
12414 * An empty action string requests that the key-sequence be unbound.
12415 * This is indicated to _kt_set_keybinding() by passing a NULL action
12416 * string, so convert an empty string to a NULL action pointer.
12418 if(action && *action=='\0')
12419 action = NULL;
12425 * Bind the action to a given key-sequence?
12427 if(keyseq && _kt_set_keybinding(gl->bindings, binder, keyseq, action)) {