I need to disable ESC ...
hello guys!
Ok, I just need to disable the ESC key while running a script.. I don't want it to close my dialog boxes.. please help!!! I've already used the trap command to block the kill signals and to block CTRL + C from closing the script.. But what I really want is that the script goes til the end with no kind of keyboard interruption! Please, help! thanks |
ESC is not a character supposed to interrupt shell scripts.
Can you explain more ? |
no it surely does not stop or close or kill shell scripts..
but it closes DIALOG BOXES.. and that is my problem, you know? for example: Code:
dialog --msgbox "This is the text that appears in the dialog" 10 30 BUT if I press ESC, the dialog closes.. |
Try that one:
Code:
code=$(xmodmap -pk | grep "(Escape)" | nawk '{print $1}') You can still use Shift-escape with my mapping. |
thank you for the replies!
hmm.. I wrote my script as you said... but take a look at what I got after pressing ESC: Code:
/ext3/scripts/shell/justtest: line 9: [: : integer expression expected anyway, thank you for the xmodmap instruction! (didn't know about that) there's valuable info there... |
What gives
Code:
xmodmap -pk | grep -i escape |
well,
the keycode is 9 and the keysym is 0xff1b check it Code:
JOANNES=[Online]=>xmodmap -pk | grep -i escape |
The problem was probably due to my script using nawk vs awk, anyway that should work:
Code:
xmodmap -e "keycode 9 = Space Escape" |
All times are GMT -5. The time now is 12:25 PM. |