From 7257ce75432b7b6904432cf85b284bc07dcf3b39 Mon Sep 17 00:00:00 2001 From: Chu'vok Date: Fri, 13 Sep 2024 16:32:50 +0200 Subject: [PATCH] fixed typo in example --- example/hello.c | 4 ++-- readme | 2 +- tim.h | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/example/hello.c b/example/hello.c index 819cc8e..56a84af 100644 --- a/example/hello.c +++ b/example/hello.c @@ -1,13 +1,13 @@ #include "../tim.h" // one header, no lib int main(void) { // while (tim_run(0)) { // event loop - scope (A, A, 24, 8) { // centered scope + scope (A, A, 24, 8) { // centered 24x8 scope uint64_t c = 0x0a060f; // three colors frame(0, 0, ~0, ~0, c); // draw frame for scope label("Greetings!", A, 2, A, A, c); // label in top center if (button("OK", A, ~1, 8, A, c)) // button in bottom center return 0; // exit on button click - if (is_key_press('q')) // + if (is_key_press('q')) // ctrl-c is masked return 0; // exit on 'q' press } // } // diff --git a/readme b/readme index 10a382f..fd56a7b 100644 --- a/readme +++ b/readme @@ -7,7 +7,7 @@ tim.h is an immediate mode toolkit for creating simple terminal guis #include "tim.h" // one header, no lib int main(void) { // while (tim_run(0)) { // event loop - scope (A, A, 24, 8) { // centered 28x8 scope + scope (A, A, 24, 8) { // centered 24x8 scope uint64_t c = 0x0a060f; // three colors frame(0, 0, ~0, ~0, c); // draw frame for scope label("Greetings!", A, 2, A, A, c); // label in top center diff --git a/tim.h b/tim.h index 02280e6..f3cd744 100644 --- a/tim.h +++ b/tim.h @@ -7,7 +7,7 @@ // #include "tim.h" // one header, no lib // int main(void) { // // while (tim_run(0)) { // event loop -// scope (A, A, 24, 8) { // centered 28x8 scope +// scope (A, A, 24, 8) { // centered 24x8 scope // uint64_t c = 0x0a060f; // three colors // frame(0, 0, ~0, ~0, c); // draw frame for scope // label("Greetings!", A, 2, A, A, c); // label in top center