2

Below is excerpted from a well-known professor's site:

Some signals cause a process to stop: SIGSTOP (stop!), SIGTSTP (stop from tty: probably ^Z was typed), SIGTTIN (tty input asked by background process), SIGTTOU (tty output sent by background process, and this was disallowed by stty tostop).

Apart from ^Z there also is ^Y. The former stops the process when it is typed, the latter stops it when it is read.

I know what Ctrl+Z means under Linux, however, I don't know what Ctrl+Y does.

Any explanations?

2

1 Answer 1

4

Ctrl-Y isn't doing anything under Linux. DSUSP is not supported on Linux.

See the man 3 termios (emphasis mine):

VDSUSP (not in POSIX; not supported under Linux; 031, EM, Ctrl-Y) Delayed suspend character (DSUSP): send SIGTSTP signal when the character is read by the user program. Recognized when IEXTEN and ISIG are set, and the system supports job control, and then not passed as input.

In the emacs mode of shell line editors and libraries like readline Ctrl-Y is bound to "yank" -- but that's a completely different thing: for instance, after deleting a word with ESC-Backspace you can reinsert it with Ctrl-Y.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .