version 1.76, 2022/12/26 19:16:02 |
version 1.77, 2023/03/08 04:43:11 |
|
|
/* |
/* |
* Insert a string, mainly for use from macros (created by selfinsert). |
* Insert a string, mainly for use from macros (created by selfinsert). |
*/ |
*/ |
/* ARGSUSED */ |
|
int |
int |
insert(int f, int n) |
insert(int f, int n) |
{ |
{ |
|
|
/* |
/* |
* This function modifies the fundamental keyboard map. |
* This function modifies the fundamental keyboard map. |
*/ |
*/ |
/* ARGSUSED */ |
|
int |
int |
bindtokey(int f, int n) |
bindtokey(int f, int n) |
{ |
{ |
|
|
/* |
/* |
* This function modifies the current mode's keyboard map. |
* This function modifies the current mode's keyboard map. |
*/ |
*/ |
/* ARGSUSED */ |
|
int |
int |
localbind(int f, int n) |
localbind(int f, int n) |
{ |
{ |
|
|
/* |
/* |
* This function redefines a key in any keymap. |
* This function redefines a key in any keymap. |
*/ |
*/ |
/* ARGSUSED */ |
|
int |
int |
redefine_key(int f, int n) |
redefine_key(int f, int n) |
{ |
{ |
|
|
return (dobind(mp, buf, FALSE)); |
return (dobind(mp, buf, FALSE)); |
} |
} |
|
|
/* ARGSUSED */ |
|
int |
int |
unbindtokey(int f, int n) |
unbindtokey(int f, int n) |
{ |
{ |
return (dobind(fundamental_map, "Global unset key: ", TRUE)); |
return (dobind(fundamental_map, "Global unset key: ", TRUE)); |
} |
} |
|
|
/* ARGSUSED */ |
|
int |
int |
localunbind(int f, int n) |
localunbind(int f, int n) |
{ |
{ |
|
|
* Use strlen for length of line, assume user is not typing in a '\0' in the |
* Use strlen for length of line, assume user is not typing in a '\0' in the |
* modeline. llen only used for foundparen() so old-school will be ok. |
* modeline. llen only used for foundparen() so old-school will be ok. |
*/ |
*/ |
/* ARGSUSED */ |
|
int |
int |
evalexpr(int f, int n) |
evalexpr(int f, int n) |
{ |
{ |
|
|
* evalbuffer - evaluate the current buffer as line commands. Useful for |
* evalbuffer - evaluate the current buffer as line commands. Useful for |
* testing startup files. |
* testing startup files. |
*/ |
*/ |
/* ARGSUSED */ |
|
int |
int |
evalbuffer(int f, int n) |
evalbuffer(int f, int n) |
{ |
{ |
|
|
* evalfile - go get a file and evaluate it as line commands. You can |
* evalfile - go get a file and evaluate it as line commands. You can |
* go get your own startup file if need be. |
* go get your own startup file if need be. |
*/ |
*/ |
/* ARGSUSED */ |
|
int |
int |
evalfile(int f, int n) |
evalfile(int f, int n) |
{ |
{ |