void owl_keyhandler_invalidkey(owl_keyhandler *kh) { char *kbbuff = owl_keybinding_stack_tostring(kh->kpstack, kh->kpstackpos+1); owl_function_makemsg("'%s' is not a valid key in this context.", kbbuff); g_free(kbbuff); owl_keyhandler_reset(kh); }
/* returns 0 on success */ int owl_keybinding_tostring(const owl_keybinding *kb, char *buff, int bufflen) { return owl_keybinding_stack_tostring(kb->keys, kb->len, buff, bufflen); }
CALLER_OWN char *owl_keybinding_tostring(const owl_keybinding *kb) { return owl_keybinding_stack_tostring(kb->keys, kb->len); }