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

Michael Parson <[email protected]>
Newsgroups gmane.comp.gnu.screen.user
Message-ID <[email protected]>
On Sun, 12 Dec 2010, Stephane Ascoet wrote:

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

Actually, Ctrl-Z sends the program to the background.  You can bring
it back with 'fg' or '%1' (if it's the first/only thing that you have
running in the background.  You can use the 'jobs' command to list the
programs running in the background for the current shell.

However, if you really want to disable Ctrl-Z, read up on the shell
command 'trap'.

From reading around on google, different implementations seem to use
different signals, but try 'trap Ctrl-z' as a search term.

-- 
Michael Parson
[email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.