Disabling interrupt function of Control-C key combination

 
Thread Tools Search this Thread
Operating Systems Linux SuSE Disabling interrupt function of Control-C key combination
# 1  
Old 11-06-2006
Disabling interrupt function of Control-C key combination

I am using informix RDBMS over SUSE LINUX. In linux if you press control-c it acts as an interrupt key. In my program I have used control-c to perform certain functions but it is being overriden by interrupt function of control-c key combination of SUSE LINUX. Kindly suggest me a solution by which I can disable the control-c of SUSE LINUX so that my program control-c works.
# 2  
Old 11-06-2006
If you type "stty -a" you will see your terminal settings. And in that output you will see "intr ^C" which means that your interrupt key is control C. If you want to change it to, say, control E you can use either:
stty intr ^e
stty intr ^E
And you can just type the ^ (shifted 6 on my keyboard) followed by e or E. You can also disable the function entirely with either:
stty intr ^-
stty intr undef
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Detecting key combination in bash

I need to grab key combination from a bash script and store it in a variable. Is there any way to do this? Thanks in advance! (1 Reply)
Discussion started by: prism1
1 Replies

2. UNIX for Advanced & Expert Users

Is there any shell command to show which interrupt handler handle which interrupt number?

Hi, all: Is there any shell command to show which interrupt handler handle which interrupt number in the system? li,kunlun (5 Replies)
Discussion started by: liklstar
5 Replies

3. UNIX for Advanced & Expert Users

Interrupt storm detected on "irq 20" throttling interrupt source

I receive the following warning messages on a very new machine which has FreeBSD 8.1 x64 installed on it: Interrupt storm detected on "irq 20" throttling interrupt source It is unclear what this means and what its origins are (motherboard? CPU? RAM?). I can start the desktop and the message is... (4 Replies)
Discussion started by: figaro
4 Replies

4. UNIX for Dummies Questions & Answers

Starting terminal with shortcut key combination

How can the shortcut keys be defined that would open up a terminal window? When using a kvm switch, the mouse sometimes does not work, but the keyboard does, and by opening up a terminal window using a shortcut key combination, the mouse can be restarted by entering the predefined mouserestart... (0 Replies)
Discussion started by: figaro
0 Replies

5. Shell Programming and Scripting

Function control value in file

Dear friends, I need help .. some will say again ; ) I've got a shell script (KSH) with interactive options. One of the option should match a numeric value but also look inside a file and check if the numeric value match the numeric value chosen. I've got a function... (6 Replies)
Discussion started by: Aswex
6 Replies

6. Shell Programming and Scripting

how to 'trap' the 'control+z' key

hello, I wanted to trap the signals in my shell script.We generally write it as:- By doing this I am able to trap ctrl+c.But when I hit "ctrl+z", then my shell is terminating....can you please tell me how to trap this signal.I wanna know the number corresponding to it !!! (3 Replies)
Discussion started by: nsharath
3 Replies

7. Programming

Detecting a key combination

Could anybody tell me how I can detect a particular key combination and perform a particular task on that event. e.g. if I press Ctrl + L on the shell then it clears the screen. Please tell me how it can be performed on my shell. And how the Arrow Keys can be detected. I tried but pressing a key... (11 Replies)
Discussion started by: mobile01
11 Replies

8. IP Networking

Disabling 802.3x flow control

I have a server I would like to disable 802.3x flow control on. The host is Linux (CentOS 4.4 x86_64 w/ 2.6.9-42.0.3.EL kernel,) and I'm using the ns83820 driver for the ethernet interface in question. I've tried looking at the driver parameters (modinfo ns83820) and using ethtool (ethtool -a... (0 Replies)
Discussion started by: LivinFree
0 Replies

9. Shell Programming and Scripting

Disabling ctrl-Z key inside shell script

Hi I have tried to disable the CTRL-Z key inside a shell(sh) script using the command trap "`echo "Ctrl-Z key disabled"`" 20But I am not able to exit from the script after pressing CTRL-Z key. How to proceed this? Need reply soon (11 Replies)
Discussion started by: suganthic
11 Replies

10. UNIX for Advanced & Expert Users

Interrupt signal Control C takes too long to terminate a process

I have a process to terminate, and when keying Control C/ kill -int , it takes 15 minutes to half an hour to terminate the process. I've tried using kill -2, or keying control c twice, however the process seem to be killed abruptly, without writing into the log file. So the only way in order to... (8 Replies)
Discussion started by: paqui
8 Replies
Login or Register to Ask a Question