version 1.41, 2005/12/13 05:40:33 |
version 1.42, 2005/12/13 06:01:27 |
|
|
for (;;) { |
for (;;) { |
ewprintf("%s", bprompt); |
ewprintf("%s", bprompt); |
pep[-1] = ' '; |
pep[-1] = ' '; |
pep = keyname(pep, sizeof(bprompt) - |
pep = getkeyname(pep, sizeof(bprompt) - |
(pep - bprompt), c = getkey(FALSE)); |
(pep - bprompt), c = getkey(FALSE)); |
if (doscan(curmap, c, &curmap) != NULL) |
if (doscan(curmap, c, &curmap) != NULL) |
break; |
break; |
|
|
*/ |
*/ |
/* ARGSUSED */ |
/* ARGSUSED */ |
int |
int |
define_key(int f, int n) |
redefine_key(int f, int n) |
{ |
{ |
static char buf[48]; |
static char buf[48]; |
char tmp[32], *bufp; |
char tmp[32], *bufp; |
|
|
} else if (fp == localbind || fp == localunbind) { |
} else if (fp == localbind || fp == localunbind) { |
bind = BINDARG; |
bind = BINDARG; |
curmap = curbp->b_modes[curbp->b_nmodes]->p_map; |
curmap = curbp->b_modes[curbp->b_nmodes]->p_map; |
} else if (fp == define_key) |
} else if (fp == redefine_key) |
bind = BINDNEXT; |
bind = BINDNEXT; |
else |
else |
bind = BINDNO; |
bind = BINDNO; |