I started using Sublime Text 3 to compile my FreeFem scripts (interpretator PDEs package solver) under Ubuntu 14.04. To invoke the interpretator I customized the build system as follows
"shell_cmd": " gnome-terminal -x sh -c \"FreeFem++ $file ; exec sh\""
Every time I run compilation I want to create a separate terminal process that launches FreeFem++. But when I press Ctrl+C it kills the terminal. Instead of this I want to terminate process but leave the terminal window open.
Don't ignore the signal
? – Reinstate Monica Jan 01 '19 at 10:56trap echo INT
as opposed totrap INT
or did you have something else in mind? – Reinstate Monica Jan 01 '19 at 11:52trap '' INT
sets SIGINT's disposition to “ignore”. – Gilles 'SO- stop being evil' Jan 01 '19 at 11:56