From bfcb2f931f8fa0ca31fff547763df9b3d11e1ab7 Mon Sep 17 00:00:00 2001 From: Timerix Date: Fri, 9 Jan 2026 11:13:55 +0500 Subject: [PATCH] tim updated --- dependencies/tim | 2 +- dependencies/tlibc | 2 +- src/cli/ClientCLI/ClientCLI.c | 9 +++++---- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/dependencies/tim b/dependencies/tim index 161f655..d417b5b 160000 --- a/dependencies/tim +++ b/dependencies/tim @@ -1 +1 @@ -Subproject commit 161f6554927e254369333051fa942d3a432fb2b0 +Subproject commit d417b5bbd5dc387b25a115e247c9c3a451d830f9 diff --git a/dependencies/tlibc b/dependencies/tlibc index 4cfed24..c4fd225 160000 --- a/dependencies/tlibc +++ b/dependencies/tlibc @@ -1 +1 @@ -Subproject commit 4cfed24ec3f56a6709fc2c53e8aef8bd70da1b58 +Subproject commit c4fd22542d1ca917b44a4e3da874f2f018f42665 diff --git a/src/cli/ClientCLI/ClientCLI.c b/src/cli/ClientCLI/ClientCLI.c index a5282d6..18d778d 100644 --- a/src/cli/ClientCLI/ClientCLI.c +++ b/src/cli/ClientCLI/ClientCLI.c @@ -18,6 +18,7 @@ static const str farewell_art = STR( "\\(_,J J L l`,)/\n" ); +#define FPS 30 #define is_alias(LITERAL) str_equals(command, STR(LITERAL)) @@ -47,13 +48,13 @@ void ClientCLI_construct(ClientCLI* self){ } Result(void) ClientCLI_run(ClientCLI* self) { - Deferral(16); + Deferral(FPS); TimEditState e; TimEditState_init(&e, 32, "Greetings!"); bool edit_enabled = false; - while(tim_run(0)){ - uint64_t c = 0x0f040f; + while(tim_run(30)){ + TimStyle c = { .brd = TimColor16_White, .bg = TimColor16_DarkBlue, .fg = TimColor16_White }; tim_frame(0, 0, ~0, ~0, c); tim_label(e.s, A, 2, A, A, c); @@ -73,7 +74,7 @@ Result(void) ClientCLI_run(ClientCLI* self) { } if(tim_button("[Q] Quit", A, ~1, 10, A, c) || tim_is_key_press('q')) - break; + exit(0); } term_clear();