Skip to content

Commit

Permalink
do not trap SIGINT to call _gsh_exit in gsh.sh
Browse files Browse the repository at this point in the history
otherwise, ^C quits gameshell, or kills background jobs (before
quitting on a second ^C)
  • Loading branch information
phyver committed Jun 27, 2021
1 parent aedcb2a commit f6db504
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/gsh.sh
Expand Up @@ -21,7 +21,7 @@

trap "_gsh_exit EXIT" EXIT
trap "_gsh_exit TERM" SIGTERM
trap "_gsh_exit INT" SIGINT
# trap "_gsh_exit INT" SIGINT


# log an action to the missions.log file
Expand Down
1 change: 1 addition & 0 deletions start.sh
Expand Up @@ -174,6 +174,7 @@ Do you want to remove it and start a new game? [y/N]') "
# hide cursor and disable echoing of keystrokes
tput civis 2>/dev/null
stty -echo 2>/dev/null
# those traps will be redefined in lib/gsh.sh
trap "tput cnorm 2>/dev/null; stty echo 2>/dev/null; echo" INT TERM EXIT


Expand Down

0 comments on commit f6db504

Please sign in to comment.