reverseVideo from perl module
Marc Lehmann
schmorp at schmorp.de
Sun Aug 29 17:22:07 CEST 2010
On Sun, Aug 29, 2010 at 03:07:03PM +0200, Jochen Keil <jochen.keil at gmail.com> wrote:
> > You have to set reverse video mode (e.g. by outputting the relevant
> > command sequence or manipulating the rendset).
> How would i do that? Sorry for being ignorant, but i thought
> scr_xor_span would do just that. :)
See urxvt(7) for all command sequences.
> > Just swap foreground and background colours, thats how uxvt does it
> > - no rvid at all, which is not what you seem to want though.
> OK, so i tried this:
No, I mean, swap the colours, not the indices. You can do this easily
from a shellscript by using the OSC 10/11 sequences for example (look for
"XTerm Operating System Commands").
> It's basically a listener on dbus for the 'BrightnessChanged' signal and
> then unlocks a barrier. It's not yet done, just for you to get an idea
> what i'm trying to do.
Yes, this makes it very clear.
Hint: if you want to make the plug-in portable, don't use the windows
process emulation code (so called "threads" in perl, even though they have
nothing to do with threads) - it makes no sense to use it under unix, and
is often disabled because of the very large overhead it causes.
And last not least, keep in mind that urxvt does not support the windows
process emulation code, so you have to fix the race conditions that ensue
somehow (e.g. by not calling urxvt functions from any other "thread" than
the urxvt one).
--
The choice of a Deliantra, the free code+content MORPG
-----==- _GNU_ http://www.deliantra.net
----==-- _ generation
---==---(_)__ __ ____ __ Marc Lehmann
--==---/ / _ \/ // /\ \/ / schmorp at schmorp.de
-=====/_/_//_/\_,_/ /_/\_\
More information about the rxvt-unicode
mailing list