On Tue, Nov 25, 2008 at 10:35:01PM +0100, Petar Bogdanovic <[EMAIL PROTECTED]> 
wrote:
> Prefixing the string `sentence, wrapped' with ^[[44m (bg-blue) and
> suffixing it with ^[[0m (normal display) should only change the

Ah - no.

> > Sounds reasonable.
> 
> Why?
> 
> sed 's/..$/^[[44m&^[[0m/', the command used in my screenshot, should
> colour the background of exactly two characters not a whole line.

terminals have no idea of "strings" of what belongs to what, they only react
to command sequences.

urxvt (nor other terminals) cannot know that the two control sequences
apply to the string between them (what happes if there are cursor
movements for example?).

if you change the background colour of the terminal, then this applies to
everything that gets output, including newly-scrolled-in space.

this is consistent with the terminfo description of urxvt (see bce).

what you seem to expect is that terminals have *two* kinds of "current
background colours", one for text being output and one for clearing lines,
which would be a bit weird, wouldn't it?

(there are terminals that have that concept and force the second colour
to be black all the time, but this creates a lot of problems - all modern
terminals apply a consistent colour model).

> Sorry if my first mail was not clear, I thought the screenshot is
> self-explanatory.

not really since it shows perfectly normal behaviour.

-- 
                The choice of a       Deliantra, the free code+content MORPG
      -----==-     _GNU_              http://www.deliantra.net
      ----==-- _       generation
      ---==---(_)__  __ ____  __      Marc Lehmann
      --==---/ / _ \/ // /\ \/ /      [EMAIL PROTECTED]
      -=====/_/_//_/\_,_/ /_/\_\

_______________________________________________
rxvt-unicode mailing list
[email protected]
http://lists.schmorp.de/cgi-bin/mailman/listinfo/rxvt-unicode

Reply via email to