This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

color codes

Old posts that have not been replied to for several years.
Locked
J
Jay-C

color codes

Post by Jay-C »

how can i set the background color of a text ?
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

This is off-topic.

You should refer to a IRC help channel, or help site for this.

However, with a little starting point.

COlour codes, are produced by usind a colour control character, which tells a clinet, to change the colour in this. This is represented by CTRL+C on the keyboard.

After which, you should have at least a 2 digit colour code, which represents the forgound (font) colour.

TO change the background colour, you need to place a comma (,) after the forground colour code, and type the 2 digit background colour code.
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

CTRL + K probably :] .. anyway.. this is for mirc clients and other.. for eggdrop is \033collor.. if I'm not wrong.. I've forgot.. shoot me :]
Once the game is over, the king and the pawn go back in the same box.
User avatar
Papillon
Owner
Posts: 724
Joined: Fri Feb 15, 2002 8:00 pm
Location: *.no

Post by Papillon »

it's \003color for eggys ;)

/me shoots ceasar
Elen sila lúmenn' omentielvo
J
Jay-C

Post by Jay-C »

yeah.. cool .. fine... i know that /003 is for color.. but does this also works to set the background color ?
/003[textcolor],[backgroundcolor] ?
N
Nexus6
Op
Posts: 114
Joined: Mon Sep 02, 2002 4:41 am
Location: Tuchola, Poland

Post by Nexus6 »

Jay-C wrote:yeah.. cool .. fine... i know that /003 is for color.. but does this also works to set the background color ?
/003[textcolor],[backgroundcolor] ?
yes it does why don't you check it?
example:

Code: Select all

/0034,8REDonYellowBg/003 text
there would be REDonYellowbg, red letters, yellow background and /003 would close color, so text would be normal black text.

Cheers and I hope that you finally get it :)
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

not in the balls :P hehe.. I've mixed them a bit :)
Once the game is over, the king and the pawn go back in the same box.
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

CTRL+K is not just for windows or mIRC.

CTRL+K will send the character code \003.

If you use VI, it has the handy feature, of injecting CTRL codes into documents, and you will notice that K will inject the colour code.

There is no differance betweent eh two, with the exeption, that Tcl interprets the \003 as it's escaped.
N
NewzUK
Master
Posts: 200
Joined: Mon Nov 18, 2002 3:10 am
Location: Auckland, New Zealand
Contact:

Post by NewzUK »

how is that 'off topic'?? it actually is very relevant and answered the same question I had.

thanks Jay-C for asking it...

:wink:
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

Because the ascii alphabet is not Tcl.
S
SmokeyOne
Halfop
Posts: 69
Joined: Tue Jan 14, 2003 6:04 am

i hate to revive an old topic but here goes

Post by SmokeyOne »

okay i see what your saying, but i have a question, how would you set if you wanted the entire text background in black then have green brackets with cyan text i never tried to use color before, thought i would try something new.


Type [ !rules ] for a list of channel rules

would it be \00312,8 /0039[\003 \00311!rules\003 \0039]\003 \0039 for a list of channel rules\\003

???
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

Try reading my FAQ over in the Tcl FAQ forum.

Wha you want is

Code: Select all

\0039,1\[ \00311!rules \0039\] \00311for a list of channel rules
Lets split it up a bit

Code: Select all

\0039,1\[
First, define the colour green (9) and the background black (1). We then place the [ character. In Tcl, you need to escape it, so note the \

Code: Select all

 \00311!rules \0039\]
Here we change the colour to cyan (11) for some text, and back to green (9) for the bracket. You don't need to escape this bracket, but of well.

Note that we don't change the background colour at all here. The background colour will remain in affect, until one of two conditions are met.

1: That \003 is used on its own, without any colour numbers.
2: The CTRL+O character is used, to normalise the text.

Code: Select all

 \00311for a list of channel rules
Finish off in cyan (11) text.
Last edited by ppslim on Fri May 02, 2003 11:15 am, edited 2 times in total.
User avatar
Papillon
Owner
Posts: 724
Joined: Fri Feb 15, 2002 8:00 pm
Location: *.no

Post by Papillon »

well... first off, that line would result in an error since you don't escape the [
second... have you tried it... cause it will NOT be all in a black background color with cyan text and green brackets :) .. try it and you'll see what I mean
to get it correct use this:

Code: Select all

\0039,1\[\00311,1 !rules \0039,1]\00311,1 for a list of channel rules\003
Elen sila lúmenn' omentielvo
S
SmokeyOne
Halfop
Posts: 69
Joined: Tue Jan 14, 2003 6:04 am

Post by SmokeyOne »

thank you very much on this, its funny how i can do some complex commands yet a simple little color command blew my mind lol

I'm glad you guys are around to help us " no reading people" learn the right commands =D
Locked