How can I trap the TAB key in a read
if I have a simple form, let's say
and I want to
tput cup 0 6; read name
I want to be able to detect that the user either hit enter OR tabs down to the next field, (not just a tab to the right)
So basically I need to know the user hit tab and then place the cursor on the next field ready for more input, in this case:
tput cup 1 9; read address.
this is just a simple example, my actual need is on a more complex customer entry form so I don't want to echo a new line of info after each "enter"