Quote:
Originally Posted by hippy dave
thanks!
|
It would probably be easier to write a little C program to do a getch(), then print its number value, then exit. It could be compiled with the tcc (tinycc) package in another thread (see the tools index wiki). That new "getchar" program could be called from a script to fetch a single ascii character on STDIN.
But that "cheat" would take all the fun out of these scripts that use only built-ins. If you use C, you may as well draw to the framebuffer in C for much faster speed.
My demo scripts are mostly for fun, like puzzle solving (but in a useful way).