Run command while key is held down in bash script -
Run command while key is held down in bash script -
i'm trying write bash script plays tone while key held down.
here's have far:
https://github.com/thelazymastermind/pcspkr_keyboard/blob/master/keyboard.sh
it works, note can't played continously while key held down.
if can't done in bash, how can done c or python?
look projects at: http://www.shellscriptgames.com/
they utilize getch.c
in order key input user... seems pure shell doesn't provide need.
bash
Comments
Post a Comment