To send Control+C to a detached screen-session I can do as has been demonstrated elsewhere:
screen -S NameOfSession -p 0 -X stuff $'\003or
screen -S NameOfSession -X -p 0 stuff "^C"My question is about 'stuff' in the command. The man pages for screen doesn't mention it, and it doesn't appear to be an application installed in my Linux dist either.
Could someone please elaborate about what 'stuff' actually is?
1 Answer
Just as I were about to post, I realized that the switch -X doesn't take any arbitrary command, it actually has a list of specific commands it accepts, reference here.
So, to quote the reference:
Stuff the string string in the input buffer of the current window. This is like the paste command, but with much less overhead. You cannot paste large buffers with the stuff command. It is most useful for key bindings.