Re: How do I alter the combination of keys that exit the Spark shell?
You can type ":quit". On Fri, Mar 13, 2015 at 10:29 AM, Adamantios Corais wrote: > Hi, > > I want change the default combination of keys that exit the Spark shell > (i.e. CTRL + C) to something else, such as CTRL + H? > > Thank you in advance. > > // Adamantios > > > -- Marcelo - To unsubscribe, e-mail: user-unsubscr...@spark.apache.org For additional commands, e-mail: user-h...@spark.apache.org
Re: How do I alter the combination of keys that exit the Spark shell?
this doesn't solve my problem... apparently, my problem is that from time to time I accidentally press CTRL + C (instead of CTRL + ALT + V for copying commands in the shell) and that results in closing my shell. In order to solve this I was wondering if I just deactivating the CTRL + C combination at all! Any ideas? *// Adamantios* On Fri, Mar 13, 2015 at 7:37 PM, Marcelo Vanzin wrote: > You can type ":quit". > > On Fri, Mar 13, 2015 at 10:29 AM, Adamantios Corais > wrote: > > Hi, > > > > I want change the default combination of keys that exit the Spark shell > > (i.e. CTRL + C) to something else, such as CTRL + H? > > > > Thank you in advance. > > > > // Adamantios > > > > > > > > > > -- > Marcelo >
Re: How do I alter the combination of keys that exit the Spark shell?
This is more of a function of your shell, since ctrl-C will send SIGINT. I'm sure you can change that, depending on your shell or terminal, but it's not a Spark-specific answer. On Fri, Mar 13, 2015 at 5:44 PM, Adamantios Corais wrote: > this doesn't solve my problem... apparently, my problem is that from time to > time I accidentally press CTRL + C (instead of CTRL + ALT + V for copying > commands in the shell) and that results in closing my shell. In order to > solve this I was wondering if I just deactivating the CTRL + C combination > at all! Any ideas? > > // Adamantios > > > > On Fri, Mar 13, 2015 at 7:37 PM, Marcelo Vanzin wrote: >> >> You can type ":quit". >> >> On Fri, Mar 13, 2015 at 10:29 AM, Adamantios Corais >> wrote: >> > Hi, >> > >> > I want change the default combination of keys that exit the Spark shell >> > (i.e. CTRL + C) to something else, such as CTRL + H? >> > >> > Thank you in advance. >> > >> > // Adamantios >> > >> > >> > >> >> >> >> -- >> Marcelo > > - To unsubscribe, e-mail: user-unsubscr...@spark.apache.org For additional commands, e-mail: user-h...@spark.apache.org
Re: How do I alter the combination of keys that exit the Spark shell?
BTW this might be useful: http://superuser.com/questions/160388/change-bash-shortcut-keys-such-as-ctrl-c On Fri, Mar 13, 2015 at 10:53 AM, Sean Owen wrote: > This is more of a function of your shell, since ctrl-C will send > SIGINT. I'm sure you can change that, depending on your shell or > terminal, but it's not a Spark-specific answer. > > On Fri, Mar 13, 2015 at 5:44 PM, Adamantios Corais > wrote: >> this doesn't solve my problem... apparently, my problem is that from time to >> time I accidentally press CTRL + C (instead of CTRL + ALT + V for copying >> commands in the shell) and that results in closing my shell. In order to >> solve this I was wondering if I just deactivating the CTRL + C combination >> at all! Any ideas? >> >> // Adamantios >> >> >> >> On Fri, Mar 13, 2015 at 7:37 PM, Marcelo Vanzin wrote: >>> >>> You can type ":quit". >>> >>> On Fri, Mar 13, 2015 at 10:29 AM, Adamantios Corais >>> wrote: >>> > Hi, >>> > >>> > I want change the default combination of keys that exit the Spark shell >>> > (i.e. CTRL + C) to something else, such as CTRL + H? >>> > >>> > Thank you in advance. >>> > >>> > // Adamantios >>> > >>> > >>> > >>> >>> >>> >>> -- >>> Marcelo >> >> -- Marcelo - To unsubscribe, e-mail: user-unsubscr...@spark.apache.org For additional commands, e-mail: user-h...@spark.apache.org
Re: How do I alter the combination of keys that exit the Spark shell?
I'm not aware of a way to do that. CTRL-C is generally handled by the terminal emulator and just sends a SIGINT to the process; and the JVM doesn't allow you to ignore SIGINT. Setting a signal handler on the parent process doesn't work either. And there are other combinations you need to care about (e.g. CTRL-D = EOF). So instead I'd try not to hit these combinations... On Fri, Mar 13, 2015 at 10:44 AM, Adamantios Corais wrote: > this doesn't solve my problem... apparently, my problem is that from time to > time I accidentally press CTRL + C (instead of CTRL + ALT + V for copying > commands in the shell) and that results in closing my shell. In order to > solve this I was wondering if I just deactivating the CTRL + C combination > at all! Any ideas? > > // Adamantios > > > > On Fri, Mar 13, 2015 at 7:37 PM, Marcelo Vanzin wrote: >> >> You can type ":quit". >> >> On Fri, Mar 13, 2015 at 10:29 AM, Adamantios Corais >> wrote: >> > Hi, >> > >> > I want change the default combination of keys that exit the Spark shell >> > (i.e. CTRL + C) to something else, such as CTRL + H? >> > >> > Thank you in advance. >> > >> > // Adamantios >> > >> > >> > >> >> >> >> -- >> Marcelo > > -- Marcelo - To unsubscribe, e-mail: user-unsubscr...@spark.apache.org For additional commands, e-mail: user-h...@spark.apache.org