frontend: add a line editor for shell input
This commit is contained in:
16
frontend/line-ed/hook.h
Normal file
16
frontend/line-ed/hook.h
Normal file
@@ -0,0 +1,16 @@
|
||||
#ifndef LINE_ED_HOOK_H_
|
||||
#define LINE_ED_HOOK_H_
|
||||
|
||||
#include "tty.h"
|
||||
|
||||
enum hook_id {
|
||||
HOOK_KEYPRESS,
|
||||
HOOK_BEFORE_PAINT,
|
||||
};
|
||||
|
||||
struct line_ed;
|
||||
|
||||
extern void hook_keypress(struct line_ed *ed, s_keycode key);
|
||||
extern void hook_buffer_modified(struct line_ed *ed);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user