- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- ctrl + s caused terminal hangs
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-23-2006 01:42 PM
тАО03-23-2006 01:42 PM
I accidentally press ctrl + s and the terminal that I login just hangs there. Luckily I able to logout after pressing ctrl + d (I think shld be used to logout).
Q1) What is the action after pressing ctrl + s? How to disable this key combination?
Q2) Where can I get a list of all the key combination functionality?
regards
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-23-2006 01:46 PM
тАО03-23-2006 01:46 PM
Re: ctrl + s caused terminal hangs
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-23-2006 02:05 PM
тАО03-23-2006 02:05 PM
Re: ctrl + s caused terminal hangs
Man ascii for the list of ASCII characters but there is no list as such for what you request. The behavior of a tty device is controlled by the termio data associated with the device. You must do a stty -a to see what the control characters are for your specific device.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-23-2006 02:08 PM
тАО03-23-2006 02:08 PM
Re: ctrl + s caused terminal hangs
Control KeysControl Key stty Name Function Description
CTRL-C intr
Stop current command
CTRL-D eof
End of input
[CTRL-\] or [CTRL-|] quit
Stop current command, if [CTRL-C] doesn't work
CTRL-S stop
Halt output to screen
CTRL-Q
Restart output to screen
DEL or [CTRL-?] erase
Erase last character
CTRL-U kill
Erase entire command line
CTRL-Z susp
Suspend current command
http://www.unix.org.ua/orelly/unix/ksh/ch01_09.htm
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-23-2006 02:16 PM
тАО03-23-2006 02:16 PM
Re: ctrl + s caused terminal hangs
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-23-2006 02:53 PM
тАО03-23-2006 02:53 PM
Re: ctrl + s caused terminal hangs
# stty -a
speed 9600 baud; line = 0;
rows = 24; columns = 90
min = 1; time = 0;
intr = ^C; quit = ^\; erase = ^H; kill = ^U
eof = ^D; eol = ^@; eol2
stop = ^S; start = ^Q; susp
werase
parenb -parodd cs7 -cstopb hupcl -cread -clocal -loblk -crts
-ignbrk brkint ignpar -parmrk -inpck istrip -inlcr -igncr icrnl -iuclc
ixon -ixany ixoff -imaxbel -rtsxoff -ctsxon -ienqak
isig icanon -iexten -xcase echo echoe echok -echonl -noflsh
-echoctl -echoprt -echoke -flusho -pendin
opost -olcuc onlcr -ocrnl -onocr -onlret -ofill -ofdel -tostop
Q1) How to disable ctrl + s & ctrl + q?
Q2) What is the content after parenb used for?
regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-23-2006 03:16 PM
тАО03-23-2006 03:16 PM
Solution- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-23-2006 04:52 PM
тАО03-23-2006 04:52 PM
Re: ctrl + s caused terminal hangs
How to make it permanent and apply to all the login terminals? Because this setting is only take affect on the current login terminal that you are using.
regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-23-2006 05:14 PM
тАО03-23-2006 05:14 PM
Re: ctrl + s caused terminal hangs
You can add this entry to your .profile at $HOME/.profile. It will executed at the time of your login.
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-23-2006 05:23 PM
тАО03-23-2006 05:23 PM
Re: ctrl + s caused terminal hangs
To make permanent then configure in $HOME/.profile or /etc/profile.
--
Muthu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-23-2006 05:47 PM
тАО03-23-2006 05:47 PM
Re: ctrl + s caused terminal hangs
May I know what is below option used for?
isig (-isig) Enable (disable) the checking of characters
against the special control characters INTR
and QUIT.
regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-23-2006 05:52 PM
тАО03-23-2006 05:52 PM
Re: ctrl + s caused terminal hangs
isig (-isig) Enable (disable) the checking of characters
against the special control characters INTR
and QUIT.
"isig" is part of local mode flags,
Local mode flags (lflags) affect various and sundry characteristics of terminal processing. Historically the term "local" pertained to new job control features implemented by Jim Kulp on a Pdp 11/70 at IIASA. Later the driver ran on the first VAX at Evans Hall, UC Berkeley, where the job control details were greatly modified but the structure definitions and names remained essentially unchanged. The second interpretation of the ├в l├в in lflag is ├в ├в line discipline flag├в ├в which corresponds to the c_lflag of the termios structure.
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-23-2006 05:52 PM
тАО03-23-2006 05:52 PM
Re: ctrl + s caused terminal hangs
isig which handles signal.
--
Muthu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-23-2006 05:54 PM
тАО03-23-2006 05:54 PM
Re: ctrl + s caused terminal hangs
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-23-2006 07:40 PM
тАО03-23-2006 07:40 PM
Re: ctrl + s caused terminal hangs
At /etc/profile, there is 1 trap signal command to trap below signal.
1 - sighup (terminal line hangup)
2 - sigint (ctrl + c)
3 - sigquit (ctrl + \)
To trap above signal, the syntax is trap 1 2 3. To disable the signal trap, the syntax is trap "" 1 2 3
Question:
1) At /etc/profile, trap signal is disabled at the beginning and it was enabled before last few lines. What is the impact if I hv syntax stty -isig after trap 1 2 3? All the signals (1 2 3) will be disabled same as the syntax trap "" 1 2 3? You may refer to below /etc/profile for more details.
Below is the content for /etc/profile:
# Ignore HUP, INT, QUIT now.
trap "" 1 2 3
.
.
.
# Leave defaults in user environment.
trap 1 2 3
set -u
trap "echo 'logout'" 0
.
.
.
TERMINAL=`tty`
export TERMINAL
# Pause for users to read motd or any other messages
stty -isig
echo "Tap
read ans
stty isig
.
.
.
regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-24-2006 02:14 AM
тАО03-24-2006 02:14 AM
Re: ctrl + s caused terminal hangs
as they were when the application was started.) For example, suppose the you wanted to disable SIGINT (default is Ctrl-C under HP-UX;
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-27-2006 12:21 PM
тАО03-27-2006 12:21 PM
Re: ctrl + s caused terminal hangs
I understand what you mean.
But I just want to know whether stty -isig is function same as trap "" 123.
regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-27-2006 12:53 PM
тАО03-27-2006 12:53 PM
Re: ctrl + s caused terminal hangs
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-27-2006 01:06 PM
тАО03-27-2006 01:06 PM
Re: ctrl + s caused terminal hangs
Can I say that stty -isig will disable SIGINT and SIGQUIT which is same as the trap signal for signal 2 = Interrupt and signal 3 = Quit?
regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-27-2006 01:10 PM
тАО03-27-2006 01:10 PM