From c573d3b7954296d95a0f8a79b8ac2ca261d86a02 Mon Sep 17 00:00:00 2001 From: "Gabriel A. Giovanini" Date: Thu, 15 Feb 2024 23:20:23 +0100 Subject: fix: Add better support for utf-8 --- ui.h | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'ui.h') diff --git a/ui.h b/ui.h index 8035d6f..cdc0539 100644 --- a/ui.h +++ b/ui.h @@ -7,5 +7,16 @@ typedef struct progress_bar { } PROGRESS_BAR; PROGRESS_BAR* new_progress_bar(WINDOW*, float); - void bar_step(PROGRESS_BAR*, float); + + +typedef struct text_box { + wchar_t *text; + int length; + int current; + WINDOW *scr; +} TEXT_BOX; + +TEXT_BOX* new_text_box(WINDOW*, int); +void get_char(TEXT_BOX* text); + -- cgit v1.2.3