This commit is contained in:
FantasyPvP
2024-11-07 13:52:28 +00:00
parent b40ecc5bb1
commit 214dfc66a5
7 changed files with 68 additions and 29 deletions
+5 -3
View File
@@ -1,8 +1,10 @@
#include "dynstr.h"
#include <stdint.h>
typedef struct {
int screen_line;
int screen_col;
uint32_t lines;
uint32_t screen_line;
uint32_t screen_col;
bool editmode;
String_t* buffer;
} Editor;
@@ -15,4 +17,4 @@ 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);
String_t* to_string(Editor* self);