feat: utf8 support & partial ui.c refactor

This commit is contained in:
2025-06-20 21:31:03 +02:00
parent d5688f5c5c
commit 787b412005
17 changed files with 366 additions and 264 deletions

View File

@@ -4,15 +4,15 @@
#include <stdbool.h>
#include <sys/types.h>
// holds also the max string buffer in itself, not dynamic
struct editable_field {
u_char length;
u_char pos;
char content[255];
};
struct editable_field field_new(char* content);
void field_trim(struct editable_field* self, u_char pos);
void field_update(struct editable_field* self, char* update);
bool field_seek(struct editable_field* self, char seek);
struct editable_field efield_new(char* content);
void efield_trim(struct editable_field* self, u_char pos);
void efield_update(struct editable_field* self, char* update);
bool efield_seek(struct editable_field* self, char seek);
#endif