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
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
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
2. Shell Programming and Scripting
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
3. IP Networking
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
4. Programming
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
5. Shell Programming and Scripting
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
6. Shell Programming and Scripting
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
7. UNIX for Dummies Questions & Answers
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
8. UNIX for Advanced & Expert Users
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
9. UNIX for Advanced & Expert Users
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
10. Shell Programming and Scripting
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
LEARN ABOUT SUSE
xkbactionctrls
XkbActionCtrls(3) XKB FUNCTIONS XkbActionCtrls(3)
NAME
XkbActionCtrls - Returns the ctrls fields of act converted to an unsigned int
SYNOPSIS
unsigned int XkbActionCtrls (XkbCtrlsAction act);
ARGUMENTS
- act action from which to extract controls
DESCRIPTION
Actions associated with the XkbCtrlsAction structure change the state of the boolean controls.
The type field can have any one of the values shown in Table 1.
Table 1 Controls Action Types
--------------------------------------------------------------
Type Effect
--------------------------------------------------------------
XkbSA_SetControls A key press enables any boolean controls
specified in the ctrls fields that were
not already enabled at the time of the
key press. A key release disables any
controls enabled by the key press. This
action can cause XkbControlsNotify
events.
XkbSA_LockControls If the XkbSA_LockNoLock bit is not set
in the flags field, a key press enables
any controls specified in the ctrls
fields that were not already enabled at
the time of the key press.
If the XkbSA_LockNoUnlock bit is not set
in the flags field, a key release dis-
ables any controls specified in the
ctrls fields that were not already dis-
abled at the time of the key press.
This action can cause XkbControlsNotify
events.
The flags field is composed of the bitwise inclusive OR of the masks shown in Table 2.
Table 2 Control Action Flags
--------------------------------------------------------------
Flag Meaning
--------------------------------------------------------------
XkbSA_LockNoLock If set, and the action type is
XkbSA_LockControls, the server only dis-
ables controls.
XkbSA_LockNoUnlock If set, and the action type is
XkbSA_LockControls, the server only
enables controls.
The XkbSA_SetControls action implements a key that enables a boolean control when pressed and disables it when released. The XkbSA_LockCon-
trols action is used to implement a key that toggles the state of a boolean control each time it is pressed and released. The XkbSA_Loc-
kNoLock and XkbSA_LockNoUnlock flags allow modifying the toggling behavior to only unlock or only lock the boolean control.
The ctrls0, ctrls1, ctrls2, and ctrls3 fields represent the boolean controls in the enabled_ctrls field of the controls structure. Xkb
macros, to convert between the two formats.
XkbActionCtrls returns the ctrls fields of act converted to an unsigned int.
STRUCTURES
typedef struct _XkbCtrlsAction {
unsigned char type; /* XkbSA_SetControls, XkbSA_LockControls */
unsigned char flags; /* with type, controls enabling and disabling
of controls */
unsigned char ctrls3; /* ctrls0 through ctrls3 represent the boolean
controls */
unsigned char ctrls2; /* ctrls0 through ctrls3 represent the boolean
controls */
unsigned char ctrls1; /* ctrls0 through ctrls3 represent the boolean
controls */
unsigned char ctrls0; /* ctrls0 through ctrls3 represent the boolean
controls */
} XkbCtrlsAction;
X Version 11 libX11 1.3.2 XkbActionCtrls(3)