Unbinding S-PgUp and S-PgDn

Aaron Griffin aaronmgriffin at gmail.com
Sat Apr 1 11:32:11 CEST 2006


On 4/1/06, Marc Lehmann <schmorp at schmorp.de> wrote:
> Thats a good start. Basically, you have to watch out for three things:
>
> 1. intercept the event, and only that event, in e.g. on_button_press&release
>    or in on_xevent.
> 2. make sure you "eat" the relevant event by returning true in your event
>    callback. also make sure the core doesn't get confused about you
>    eating the button down event but not the button up event.
> 3. you can inject octets to the terminal app with the ->tt_write
>    method.
> 4. you can't query the current keybinding, but you can reverse the approach
>    by e.g. using a resource to define prior/next sequences and bind them
>    using parse_keysym. Thats overdesign, though, as just hardcoding the
>    sequences you want is likely the easiest way.

Perfect, just what I needed - tt_write is what I was looking for.

> > While we're on the subject, I've been meaning to muck with the
> > 'match_urls' script so that the "proto://" isn't required.  But I get
> > real lazy about trivial stuff like that.  I think it would be a nice
> > idea for the official script too, so that things like "google.com"
> > will match.
>
> How would you go about not matching just about anything that contains a
> dot?

Well, matching the dot plus (com|net|org|........) should be pretty
easy - though real messy if you introduce the whole list of CCTLDs...
I dunno, it was just something I ran across.  Also, the urls regex
doesn't contain the # character, which is kinda common in URLs.


More information about the rxvt-unicode mailing list