
On 2008.07.13 17:26:55 +0200, Jérémy Bobbio
On Sat, Jul 12, 2008 at 12:34:18AM -0400, Gwern Branwen wrote:
Thanks for the code, Jeremy; I've long wanted a function to send keys to windows. I was thinking of adding it to XSelection, but what limits does this function have, do you know? X is often difficult to deal with. Does it handle odd characters?
I use it to send "xK_3" with "mod1Mask .|. controlMask" to an urxvt. This shortcut is bound to changing the terminal font size.
I don't know how odd it is in your definition, but for me, it does the trick! :)
Cheers, -- Jérémy Bobbio .''`.
Oh. Hmm, it still sounds useful. Incidentally, how exactly does one use it? I gave it a desultorily try, but I was unsure how exactly one gets the Window argument - I tried using withWindowSet, but got bogged down extracting the Window parameter from it. -- gwern NSOF Tess 2E781 B28RE Consul 03 e95 Compsec hate Banner