23 lines
387 B
C
23 lines
387 B
C
|
|
#ifndef _KEYBIND_H_
|
||
|
|
#define _KEYBIND_H_
|
||
|
|
|
||
|
|
#include <bshell/line-editor/keybind.h>
|
||
|
|
#include <fx/bst.h>
|
||
|
|
#include <fx/term/tty.h>
|
||
|
|
|
||
|
|
struct keybind {
|
||
|
|
fx_bst_node b_node;
|
||
|
|
unsigned long b_priority;
|
||
|
|
bshell_line_ed_keybind_callback_t b_callback;
|
||
|
|
};
|
||
|
|
|
||
|
|
struct keymap_entry {
|
||
|
|
fx_bst_node e_node;
|
||
|
|
fx_keycode e_code;
|
||
|
|
fx_bst e_binds;
|
||
|
|
};
|
||
|
|
|
||
|
|
extern void line_ed_cleanup_keymap(fx_bst *keymap);
|
||
|
|
|
||
|
|
#endif
|