Can't pause nano in terminal

I was looking for a solution to this and the accepted answer didn't help me.

Setting set suspend in ~/.nanorc works!

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


If you enter nano -z it works as well.


This can be easily done by masking the SIGTSTP signal:

#include <signal.h>

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

That's what nano is doing, apparently.

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

set suspend

into your $HOME/.nanorc.