screen-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Q: I'm searching a way to disable Ctrl-Z


From: Stephane Chazelas
Subject: Re: Q: I'm searching a way to disable Ctrl-Z
Date: Wed, 15 Dec 2010 17:26:06 +0000
User-agent: Mutt/1.5.16 (2007-09-19)

2010-12-12 21:14:15 +0000, Stephane Ascoet:
> Hi, Ctrl-Z shuts down screen and all opened programms inside it. The only 
> thing I found was to re-affect the combination to another action, but I'm 
> unable to find how to simply disable it. I'm sure some of you know how to 
> do it...
[...]

It shouldn't happen.

Upon binding screen to a terminal, screen should disable signal
processing on that terminal (equivalent of "stty -isig"). When
enabled on the "inner" pseudo terminal it manages though, upon
pressing <Ctrl-Z>, screen would send ^Z to the pseudo terminal
which would cause the SIGTSTP to be sent to the foreground
process group of the inner pseudo terminal (typically the
application that runs in foreground in the active screen
window), but that shouldn't cause screen to terminate.

Chances are that for some reason screen wasn't able to do the
"stty -isig" on the host terminal.

How do you start the host terminal and screen in it?

What you can do is find out the path of the terminal device
screen is attached to (in $STY if that screen session was
started in that terminal), and do a

stty -isig < /dev/pts/...

to see if that helps.

-- 
Stephane



reply via email to

[Prev in Thread] Current Thread [Next in Thread]