Mar 22, 2004 #1 lmb5kids Programmer Joined Dec 18, 2003 Messages 36 Location US I have a script that I would like the user to be able to press the escape key to exit, how would I go about reading the escape key in a script ? Thanks for any help.
I have a script that I would like the user to be able to press the escape key to exit, how would I go about reading the escape key in a script ? Thanks for any help.
Mar 23, 2004 #2 PHV MIS Joined Nov 8, 2002 Messages 53,708 Location FR You can try put the following lines at the beginning of your scripts: savetty=`stty -g` stty intr '^[' trap 'stty $savetty; exit 0' 0 1 2 3 15 Hope This Help, PH. Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 Upvote 0 Downvote
You can try put the following lines at the beginning of your scripts: savetty=`stty -g` stty intr '^[' trap 'stty $savetty; exit 0' 0 1 2 3 15 Hope This Help, PH. Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884
Mar 23, 2004 #3 aigles Technical User Joined Sep 20, 2001 Messages 464 Location FR Congratulations PH, TipMaster of the Week again . Jean Pierre. Upvote 0 Downvote
Mar 23, 2004 #5 vgersh99 Programmer Joined Jul 27, 2000 Messages 2,146 Location US PHV, congrats! vlad +----------------------------+ | #include<disclaimer.h> | +----------------------------+ Upvote 0 Downvote
PHV, congrats! vlad +----------------------------+ | #include<disclaimer.h> | +----------------------------+