Unable to pause nano in terminal

Trying to learn how to use the terminal here.

Therefore, I can use ctrl-z to pause other processes, but for some reason it does not work in nano. Why would that be?

+5
source share
3 answers

This is easy to do by masking the SIGTSTP signal:

#include <signal.h>

signal(SIGTSTP,SIG_IGN); /* disable ctrl-Z */

What nano does is apparently.

If you want nano to allow you to pause it with ctrl-z, you can put the line:

allow nano to suspend

c $HOME/.nanorc.

-1
source

I was looking for a solution to this, and the accepted answer did not help me.

Setting set suspendin ~ / .nanorc works!

http://www.nano-editor.org/dist/v2.2/nanorc.5.html

+4
source

If you enter nano -z, it also works.

+3
source

All Articles