reverseVideo from perl module
Benjamin R. Haskell
rxvt-unicode at benizi.com
Sun Aug 29 18:33:45 CEST 2010
On Sun, 29 Aug 2010, Marc Lehmann wrote:
> On Sun, Aug 29, 2010 at 03:07:03PM +0200, Jochen Keil 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").
That's the method I use, by mapping these in my ~/.Xdefaults:
! Quick background-color toggles
URxvt.keysym.M-minus: command:\033]11;0\007\033]10;15\007
URxvt.keysym.M-equal: command:\033]11;15\007\033]10;0\007
Then Alt+- toggles to white-on-black, and Alt+= toggles to
black-on-white (back to default).
--
Best,
Ben
More information about the rxvt-unicode
mailing list