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

Popular posts from this blog

web services - java.lang.NoClassDefFoundError: Could not initialize class net.sf.cglib.proxy.Enhancer -

Accessing MATLAB's unicode strings from C -

javascript - mongodb won't find my schema method in nested container -