This is the mail archive of the libc-help@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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
> <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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]