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