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

Michael Parson <[email protected]>
Newsgroups gmane.comp.gnu.screen.user
Message-ID <[email protected]>
On Mon, 21 May 2012, 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.

screen -X at "<sessionName>" stuff "C-v C-c"

Where you hit a literal control-v control-c.

First you'll see the ^V then ^C will replace it, on your shell prompt
(or in your editor), you should see something like:

$ screen -X at "test" stuff "^C"

-- 
Michael Parson
Unix Thug
Austin, TX
KF5LGQ
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.