View Single Post
Old 08-06-2012, 06:21 AM   #40
geekmaster
Carpe diem, c'est la vie.
geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.
 
geekmaster's Avatar
 
Posts: 6,433
Karma: 10773670
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
Quote:
Originally Posted by hippy dave View Post
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).
geekmaster is offline   Reply With Quote