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: Gerald Young
Subject: Re: Sending the Ctrl-C keystroke into a screen window
Date: Mon, 21 May 2012 10:32:37 -0500
User-agent: KMail/1.13.7 (Linux/2.6.32-5-686; KDE/4.6.5; i686; ; )

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



reply via email to

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