reverseVideo from perl module

Marc Lehmann schmorp at schmorp.de
Sun Aug 29 14:04:33 CEST 2010


On Sun, Aug 29, 2010 at 10:23:03AM +0200, Jochen Keil <jochen.keil at gmail.com> wrote:
> I am trying to set the rendition bit RS_RVid to make the colors of a
> terminal permanently reversed. For now I've tried using this:

Are you sure this is really what you want to do? Could you describe what
you are *really* trying to do, maybe there is a better solution for your
problem? Or a solution at all, as what you are trying to do cannot be
done.

> $term->scr_xor_span(0, 0, $term->nrow-1, $term->ncol-1, urxvt::RS_RVid);
> 
> Unfortunately this doesn't last. On the next refresh (as soon as I type
> something in the terminal) it will switch back to "normal" colors.

You have to set reverse video mode (e.g. by outputting the relevant command
sequence or manipulating the rendset).

> So how could make video permanently reversed like after starting urxvt
> with the reverseVideo resource set?

Just swap foreground and background colours, thats how uxvt does it - no
rvid at all, which is not what you seem to want though.

Same is true for scr_rvideo_mode, it will interfere with the visual bell.

Same is true for inverting them in a display filter.

All these will change the appearance to be reversed, but will not actually
reverse the attributes.

-- 
                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