Custom Interrupt keys
Petr Baudis
pasky@suse.cz
Fri Sep 18 13:50:00 GMT 2009
On Wed, Sep 02, 2009 at 08:33:06AM +0200, RĂŠmi Denis-Courmont wrote:
>
> On Wed, 2 Sep 2009 09:25:13 +0530 (IST), Shameem Ahamed
> <shameem.ahamed@yahoo.com> wrote:
> > Can I set custom interrupt keys in Linux ?. I want to set a different
> > key combination other than Ctrl+C for SIGINT signal from keyboard.
> >
> > Is it possible ?, if yes, how can I set it ?.
>
> This is a decision of the terminal implementation, not the running program.
Actually, this is not true, it is a question of setup of your terminal -
you can change that by tcgetattr()/tcsetattr() or the stty tool. Which
character sends SIGINT is decided by the intr setting (c_cc[VINTR]).
--
Petr "Pasky" Baudis
A lot of people have my books on their bookshelves.
That's the problem, they need to read them. -- Don Knuth
More information about the Libc-help
mailing list