Files
CSPP-coursework/final/editor.h
T

18 lines
335 B
C

#include "dynstr.h"
typedef struct {
int screen_line;
int screen_col;
bool editmode;
String* 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* to_string(Editor* self);