What is this 'stuff' in the command being sent to screen?

To send Control+C to a detached screen-session I can do as has been demonstrated elsewhere:

screen -S NameOfSession -p 0 -X stuff $'\003

or

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.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like