MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / terminal_set_arrow

Function terminal_set_arrow

extern/editline/src/terminal.c:1097–1111  ·  view source on GitHub ↗

terminal_set_arrow(): * Set an arrow key binding */

Source from the content-addressed store, hash-verified

1095 * Set an arrow key binding
1096 */
1097protected int
1098terminal_set_arrow(EditLine *el, const Char *name, keymacro_value_t *fun,
1099 int type)
1100{
1101 funckey_t *arrow = el->el_terminal.t_fkey;
1102 int i;
1103
1104 for (i = 0; i < A_K_NKEYS; i++)
1105 if (Strcmp(name, arrow[i].name) == 0) {
1106 arrow[i].fun = *fun;
1107 arrow[i].type = type;
1108 return 0;
1109 }
1110 return -1;
1111}
1112
1113
1114/* terminal_clear_arrow():

Callers 1

map_bindFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected