mirror of
https://github.com/javalsai/lidm.git
synced 2025-09-01 02:47:59 +02:00
feat: utf8 support & partial ui.c refactor
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user