[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: how to send the <esc> keystroke to a window?
From: |
Phil!Gregory |
Subject: |
Re: how to send the <esc> keystroke to a window? |
Date: |
Thu, 26 Jan 2006 22:00:33 -0500 |
User-agent: |
Mutt/1.5.11 |
* sven <address@hidden> [2006-01-27 01:23 +0100]:
> screen -S program -X register k c
> screen -S program -X paste k
You can also just use:
screen -S program -X stuff c
> now how can i send the escape key just as if <esc> was pressed in that
> window?
I assume you're running this from the shell or a shell script. If so, you
can use backticks:
screen -S program -X stuff `echo -ne '\e'`
--
...computer contrarian of the first order... / http://aperiodic.net/phil/
PGP: 026A27F2 print: D200 5BDB FC4B B24A 9248 9F7A 4322 2D22 026A 27F2
--- --
I parry the demon's two-handed sword with my stiletto.
-- Famous Last Words, #731
---- --- --