Re: Sending the Ctrl-C keystroke into a screen window

Gerald Young <[email protected]>
Newsgroups gmane.comp.gnu.screen.user
Organization Azetti Networks
Message-ID <[email protected]>
Hello,

Try using the "stuff" command. So something like:
screen -x <sessionName> -p <windowTitle> -X stuff "^C"

Note that the ^C sequence is a literal Ctrl+C character, so you need to input 
it as the sequence Ctrl+V Ctrl+C.

Best regards,
Gerald Young

On Monday, May 21, 2012 09:54:47 AM Anatoly Varakin wrote:
> Dear community,
> 
> Would you please let me know how one could send programmatically the Ctrl-C
> keystroke, needed for breaking the current application, into a specific
> window of a particular screen session? The "screen -x <sessionName> -p
> <windowTitle> -X break" command, which could make this, as one might
> suppose, does not work really.
> 
> Looking forward to hearing from you.
> 
> Thanks a lot!
> 
> Kind regards,
> Anatoly Varakin
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.