Re: [Circle] Background color

From: Rasmus 'Con' Ronlev (raro94ab@hp4.econ.cbs.dk)
Date: 08/13/96


On Mon, 12 Aug 1996, Cyber Reaper wrote:

> >BACKGROUND colors. The bold colors work flawlessly, but when I start using
> >the background colors the 'whole line' is set to the god damn
> >backgroundcolor, no matter it it's just two words and a carriage return.
> >my definition of the red background color is defined as:
> >#define KBACKRED "\x1B[41m"     /* Red                  (background) */
> >#define CCBACKRED(ch,lvl)  (clr((ch),(lvl))?KBACKRED:KNUL)
> >CCNRM/KNRM are the same as with the Circlemud 3.0 bpl 11 distribution.

> well, make sure you put color back to normal before the carrage return/line
> feed... hope that helps...

Well, if I do this:

sprintf(buf, "%sThis is a background test%s\r\n", CCBACKRED(ch, C_NRM),
             CCNRM(ch, C_NRM));
send_to_char(buf, ch);

I end up with a line that is RED FROM LEFT TO RIGHT (i.e. the WHOLE 80
chars of my screens width). I mean I use the CCNRM macro before the \r\n
lineshift stuff and all that, but little good does it do me :P
I didn't write this because I thought my mail allready said it, but
seemingly it didn't, so here's the rest of the explanation of the problem
*grin*

Any additional ideas now ??
Con

d.
--
     Rasmus Rønlev DOEK'94      WWW: http://www.econ.cbs.dk/people/raro94ab
     Student instructor         MUD: exiled.mud.circlemud.org 5000
                                         199.199.16.100 5000
       Student, B.Sc in Computer Science and Business Administration.

+-----------------------------------------------------------+
| Ensure that you have read the CircleMUD Mailing List FAQ: |
|   http://cspo.queensu.ca/~fletcher/Circle/list_faq.html   |
+-----------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/07/00 PST