18 lines
339 B
C
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); |