Files
CSPP-coursework/final/editor.h
T
2024-11-05 09:32:36 +00:00

18 lines
339 B
C

#include "dynstr.h"
typedef struct {
int screen_line;
int screen_col;
bool editmode;
String_t* buffer;
} Editor;
Editor new_editor();
Editor editor_from(char* input_string);
void move_cursor(Editor* self, int x, int y);
void delchar(Editor* self);
void addchar(Editor* self, char c);
String_t* to_string(Editor* self);