I'd like to browse a terminal dialog menu with the arrow keys (like bash 'dialog')
I would prefer ruby solution, but bash/python could work.
read -n1 input # is not good enough, cause the arrow keys are not regular chars.
Also, the 'read' in mac term doesn't support smaller timeout than 1 second.
Anything?
Thanks,
According to Mark Setchell, minor modification:
I am not sure what you are looking for -
However, these may give you some ideas:
For 1: You would probably need to look at the Automator and Applescript
For 2: You could look at Platypus for generating dialog boxes and wrappers around scripts - available here
For 3: The following may do something like you want
I should explain that the
if [ $KEY
line needs to be typedi.e. type these 5 things