I don't know if you still need this, but can't you use something like this?
char choice[1];
nio_printf(csl, "> "); // wait for input
nio_fgets(choice,3,csl); // store input in choice[]
return (int)choice[0]; // return choice
If it doesn't help you, maybe it helps others
However it doesn't accept buttons like the keypad, etc. only printable chars
If you set it to unsigned char, you may be able to use the second part of the ascii table, but i haven't tested it
~virus