int main() { Console *c = CreateConsole(); pid_t pid = fork(); if(!pid) { c->displayLoop(c); return 0; } while(c->run) { char t = getchar(); c->registerTyped(c, t); } FreeConsole(c); }