ratpoison-devel
[Top][All Lists]
Advanced

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

Re: [RP] Sending of any key in top keymap


From: Martin Samuelsson
Subject: Re: [RP] Sending of any key in top keymap
Date: Sun, 6 Feb 2005 14:44:11 +0100
User-agent: Mutt/1.5.6+20040907i

On Mon, Dec 27, 2004 at 03:30:24AM +0100, Martin Samuelsson wrote:
> On Mon, Dec 27, 2004 at 02:44:32AM +0100, Martin Samuelsson wrote:
> > Would it be appropriate to make :meta accept an option for the keysum to
> > send? Or what do you think?
> 
> Well, this is buggy and stuff.

Still buggy and only against the old branch, but slightly updated to
work against cvs again. (I hope)


Now no changes are made to the meta command. Instead a new command is
introduced, keypress. It takes one argument, namely the key to be
pressed. Which could be either a key in the top keymap or just any key
at all.

Known bugs for now is that it kills rp when feeded a key symbol that
doesn't exist.

Examples,

To simulate :meta just type
        :keypress C-t

To maximize your firefox even when F11 is in your top keymap, type
        :keypress F11

To play with a friend who forgot to logout his account, wait until he
stares at his terminal without any fingers on the keyboard and use your
access to his account typing

        % for key in S p o o o k y
          do
             ratpoison -c "keypress $key"
             sleep 1
          done

To crash your ratpoison type
        :keypress UmgebrachenMirBitte


Any comments?
--
/Martin

Attachment: rp-oldbranch-keypress.diff
Description: Text document


reply via email to

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