Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

3
  • You actually can bind Ctrl-z in zsh. Also, this does not depend on the terminal emulator, but on the shell. While a terminal emulator might prevent Ctrl-z from being used, I think it unlikely that any terminal emulator actually does do this, as this is shortcut is generally used to send SIGSTOP to the running process. Commented Oct 10, 2016 at 13:53
  • 1
    The "inability" to bind Ctrl+z or Ctrl+c is because the terminal intercepts these and sends signals instead, thus the shell does not see these characters. But if you bind Ctrl+z (or Ctrl+c) and reconfigure the terminal (e.g. stty susp ^Y intr ^U) then the binding(s) will work. Commented Aug 9, 2022 at 5:54
  • 1
    @Adaephon, that's SIGTSTP sent to the foreground process group / job, not "SIGSTOP sent to the running process". Commented Aug 9, 2022 at 6:05