2024-07-01 21:40:07 +02:00
|
|
|
#ifndef EDITOR_H_
|
|
|
|
#define EDITOR_H_
|
|
|
|
|
2024-07-04 18:00:13 +02:00
|
|
|
void refresh_screen();
|
|
|
|
void move_cursor(int key);
|
|
|
|
void scroll();
|
2024-07-01 21:40:07 +02:00
|
|
|
void insert_char(int c);
|
2024-07-03 03:41:28 +02:00
|
|
|
void insert_new_line();
|
2024-07-03 10:58:51 +02:00
|
|
|
void shift_new_line();
|
2024-07-03 03:41:28 +02:00
|
|
|
void del_char();
|
2024-07-04 18:00:13 +02:00
|
|
|
void init_editor();
|
2024-07-03 12:11:48 +02:00
|
|
|
void open_editor(char *filename);
|
|
|
|
char *prompt_editor(char *prompt, void (*callback)(char *, int));
|
|
|
|
void find_editor();
|
2024-07-01 21:40:07 +02:00
|
|
|
|
|
|
|
#endif
|