Domanda

In R, running under Ubuntu 11.10 with xfce4, if I accidentally type the key control-4, R quits immediately - no questions asked - which can be useful at times if I create a job that's just too big.

The trouble is that I occasionally accidentally hit ctrl-4 in the middle of work and lose it which is annoying.

How can I change this keycode to something else? or failing that just remove it altogether?

Thanks!

È stato utile?

Soluzione

Ctrl-4 is sending the Unix Quit signal. Ctrl-\ will do it to.

To disable in a shell, do:

trap '' 3

then run R, try ctrl-\ or ctrl-4 - but anything else you wan to SIGQUIT will ignore it in that shell. Send a SIGKILL instead (kill -9).

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top