extern "C" { #include "hello.h" #include #include #include } #include void hello() { KDFillRect((KDRect){ .x = 0, .y = 0, .width = 320, .height = 240}, 0x7F); char input[255]; int index = 0; while (1) { char character = ion_getchar(); if (character == '.') { input[index] = 0; index = 0; CreateFromString(input); } else { input[index++] = character; input[index] = 0; KDDrawString(input, (KDPoint){.x = 40, .y = 40}); } } }