screen-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Michael Parson
Subject: Re: Sending the Ctrl-C keystroke into a screen window
Date: Mon, 21 May 2012 11:49:24 -0500 (CDT)
User-agent: Alpine 2.00 (NEB 1167 2008-08-23)

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]