esc and entr handling in command mode
This commit is contained in:
parent
5daf8b9dd3
commit
5eb4437ac4
6 changed files with 66 additions and 14 deletions
|
|
@ -18,15 +18,6 @@
|
|||
|
||||
#include "kubo_command.h"
|
||||
|
||||
static char *kubo_char_arr_build_str(struct kubo_char_arr *arr) {
|
||||
char *res = malloc(arr->count + 1);
|
||||
for (int i = 0; i < arr->count; i++) {
|
||||
res[i] = kubo_char_arr_get(arr, i);
|
||||
}
|
||||
res[arr->count] = '\0';
|
||||
return res;
|
||||
}
|
||||
|
||||
void kubo_command_render(struct kubo_context *context, int x, int y, int font_size) {
|
||||
DrawText(kubo_char_arr_build_str(&context->command), x, y, font_size, WHITE);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue