frontend: add a line editor for shell input
This commit is contained in:
12
frontend/line-ed/history.h
Normal file
12
frontend/line-ed/history.h
Normal file
@@ -0,0 +1,12 @@
|
||||
#ifndef LINE_ED_HISTORY_H_
|
||||
#define LINE_ED_HISTORY_H_
|
||||
|
||||
struct line_ed;
|
||||
|
||||
extern void alloc_empty_history_entry(struct line_ed *ed);
|
||||
extern void save_buf_to_history(struct line_ed *ed);
|
||||
extern void append_buf_to_history(struct line_ed *ed);
|
||||
extern void load_buf_from_history(struct line_ed *ed);
|
||||
extern const char *last_history_line(struct line_ed *ed);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user