On Tue, Nov 25, 2008 at 08:40:14PM +0100, Marc Lehmann wrote: > On Tue, Nov 25, 2008 at 04:41:25PM +0100, Petar Bogdanovic <[EMAIL > PROTECTED]> wrote: > > when colouring the background of some lines using ansi escape sequences, > > the second part of a wrapped line on the bottom of the terminal colours > > the whole line: > > What do you mean with "second part"?
+-------+----------------------+ | urxvt | _[]X| +-------+----------------------+ |$ | |$ | |$ | |$ This is a complete sentence,| <-- first part |wrapped over two lines. | <-- second part +------------------------------+ Prefixing the string `sentence, wrapped' with ^[[44m (bg-blue) and suffixing it with ^[[0m (normal display) should only change the background-colour of the mentioned string, which it does, except when the (wrapped) line hits the bottom and the terminal starts to scroll down automatically. Then it colours the whole second part of the wrapped line in bg-blue. Looks like [1]this or [2]this. > > This does not happen when I'm using foreground colors. It also goes > > away, when I clear or resize the terminal, but comes back as soon as the > > terminal starts to scroll again. > > 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. Sorry if my first mail was not clear, I thought the screenshot is self-explanatory. Thanks, Petar [1] http://img384.imageshack.us/img384/2807/termpy2.png [2] http://img360.imageshack.us/img360/4192/term2hx3.png _______________________________________________ rxvt-unicode mailing list [email protected] http://lists.schmorp.de/cgi-bin/mailman/listinfo/rxvt-unicode
