This is the mail archive of the
libc-help@sourceware.org
mailing list for the glibc project.
Re: Custom Interrupt keys
Hello Petr,
Thanks a lot for the hint.
I will try it out, and will get back to you.
Shameem
----- Original Message ----
> From: Petr Baudis <pasky@suse.cz>
> To: Rémi Denis-Courmont <remi@remlab.net>
> Cc: Shameem Ahamed <shameem.ahamed@yahoo.com>; libc-help@sourceware.org
> Sent: Friday, September 18, 2009 7:19:59 PM
> Subject: Re: Custom Interrupt keys
>
> 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
> > 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