tim updated
This commit is contained in:
2
dependencies/tim
vendored
2
dependencies/tim
vendored
Submodule dependencies/tim updated: 161f655492...d417b5bbd5
2
dependencies/tlibc
vendored
2
dependencies/tlibc
vendored
Submodule dependencies/tlibc updated: 4cfed24ec3...c4fd22542d
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user