Original Usenet thread from alt.ascii-art, started 25 Nov 1996.
Color IRC codes?
alt.ascii-art
· 8 messages · 25 Nov 1996 - 1 Dec 1996
Hi all! I've seen people on the IRC run scripts that set terminal screen colors. Does anybody have a list of the sequences used to do this? Thanks for any help!
I have an ircii script at http://www.cloud9.net/~moocat/colors.irc sayanora jon...@jonathan.nasa.com On 25 Nov 1996, wyv wrote: > In article <57crk6$h3...@news1.epix.net>, gsp...@epix.net says... > > > >Hi all! > > > >I've seen people on the IRC run scripts that set terminal screen colors. > >Does anybody have a list of the sequences used to do this? Thanks for any > >help! > > Ahh, I've never seen/heard of scripts that "set terminal colors". Obviously > you're talking about script for ircII... You're probably thinking of scripts > for BitchX (and other clients like that) that support ANSI color. Scripts such > as bitZ and whirred have special options to set up colors used in the script, > but this has nothing to do with your terminal. The color is displayable because > of the client, not the script. So, basically, if you're looking for ANSI color, > I suggest you download a copy of BitchX and load up one of the scripts that are > included with it (bitZ and whirred are a couple of the most popular). > > wyv > > >
In article <57crk6$h3...@news1.epix.net>, gsp...@epix.net says... > >Hi all! > >I've seen people on the IRC run scripts that set terminal screen colors. >Does anybody have a list of the sequences used to do this? Thanks for any >help! Ahh, I've never seen/heard of scripts that "set terminal colors". Obviously you're talking about script for ircII... You're probably thinking of scripts for BitchX (and other clients like that) that support ANSI color. Scripts such as bitZ and whirred have special options to set up colors used in the script, but this has nothing to do with your terminal. The color is displayable because of the client, not the script. So, basically, if you're looking for ANSI color, I suggest you download a copy of BitchX and load up one of the scripts that are included with it (bitZ and whirred are a couple of the most popular). wyv
In article <Pin...@cloud9.net>, moo...@cloud9.net says... > >I have an ircii script at http://www.cloud9.net/~moocat/colors.irc You're missing a bunch of colors there, here's all the color codes I've got. "BG" is "background" abbrev'd, and ^[ is always the literal Ctrl+[ character, which is not displayed here: STOP COLORS ^[[0m BLINKING ^[[5m - BLACK ^[[30m RED ^[[31m GREEN ^[[32m YELLOW ^[[33m BLUE ^[[34m MAGENTA ^[[35m CYAN ^[[36m WHITE ^[[37m - LIGHT BLACK ^[[1;30m LIGHT RED ^[[1;31m LIGHT GREEN ^[[1;32m LIGHT YELLOW ^[[1;33m LIGHT BLUE ^[[1;34m LIGHT MAGENTA ^[[1;35m LIGHT CYAN ^[[1;36m LIGHT WHITE ^[[1;37m - BLACK BG ^[[40m RED BG ^[[41m GREEN BG ^[[42m YELLOW BG ^[[43m BLUE BG ^[[44m MAGENTA BG ^[[45m CYAN BG ^[[46m WHITE BG ^[[47m Thank you very much. :)
In alt.irc, wyv <wy...@cris.com> writes: > You're missing a bunch of colors there, here's all the color codes I've > got. "BG" is "background" abbrev'd, and ^[ is always the literal Ctrl+[ > character, which is not displayed here: It's known as ESC or Escape. :) # Attribute codes have the form xx;xx;xx where one code is the attribute, # another is the foreground color, and the third is the background color. # If only one or two of those three classes of attributes is to be # changed, the rest can be omitted. The codes are as follows: # # Attribute codes: # 00=none 01=bold 04=underscore 05=blink 07=reverse 08=concealed # Text color codes: # 30=black 31=red 32=green 33=yellow 34=blue 35=magenta 36=cyan 37=white # Background color codes: # 40=black 41=red 42=green 43=yellow 44=blue 45=magenta 46=cyan 47=white # # To change text attributes, send the sequence: # # ESC [ <attribute> m # # leaving off the spaces, where ESC is C-[ or octal character 033 and # <attribute> is one of those attribute codes. For example, use ESC [ 1;32 m (no spaces) to turn text bright green. (Or, equivalently, ESC [ 32;1 m ). -- Russ Allbery (rr...@cs.stanford.edu) <URL:http://www.eyrie.org/~eagle/>
wyv wrote: > > In article <Pin...@cloud9.net>, > moo...@cloud9.net says... > > > >I have an ircii script at http://www.cloud9.net/~moocat/colors.irc > > You're missing a bunch of colors there, here's all the color codes I've got. > "BG" is "background" abbrev'd, and ^[ is always the literal Ctrl+[ character, > which is not displayed here: > > STOP COLORS ^[[0m > BLINKING ^[[5m > - > BLACK ^[[30m > RED ^[[31m > GREEN ^[[32m > YELLOW ^[[33m > BLUE ^[[34m > MAGENTA ^[[35m > CYAN ^[[36m > WHITE ^[[37m > - > LIGHT BLACK ^[[1;30m > LIGHT RED ^[[1;31m > LIGHT GREEN ^[[1;32m > LIGHT YELLOW ^[[1;33m > LIGHT BLUE ^[[1;34m > LIGHT MAGENTA ^[[1;35m > LIGHT CYAN ^[[1;36m > LIGHT WHITE ^[[1;37m > - > BLACK BG ^[[40m > RED BG ^[[41m > GREEN BG ^[[42m > YELLOW BG ^[[43m > BLUE BG ^[[44m > MAGENTA BG ^[[45m > CYAN BG ^[[46m > WHITE BG ^[[47m > > Thank you very much. :);*) -- MZ�
In article <qum...@cyclone.stanford.edu>, rr...@cs.stanford.edu says... > >In alt.irc, wyv <wy...@cris.com> writes: > >> You're missing a bunch of colors there, here's all the color codes I've >> got. "BG" is "background" abbrev'd, and ^[ is always the literal Ctrl+[ >> character, which is not displayed here: > >It's known as ESC or Escape. :) Yeah, I know, but that doesn't exactly matter. ># Attribute codes have the form xx;xx;xx where one code is the attribute, ># another is the foreground color, and the third is the background color. ># If only one or two of those three classes of attributes is to be ># changed, the rest can be omitted. The codes are as follows: ># ># Attribute codes: ># 00=none 01=bold 04=underscore 05=blink 07=reverse 08=concealed ># Text color codes: ># 30=black 31=red 32=green 33=yellow 34=blue 35=magenta 36=cyan 37=white ># Background color codes: ># 40=black 41=red 42=green 43=yellow 44=blue 45=magenta 46=cyan 47=white ># ># To change text attributes, send the sequence: ># ># ESC [ <attribute> m ># ># leaving off the spaces, where ESC is C-[ or octal character 033 and ># <attribute> is one of those attribute codes. > >For example, use ESC [ 1;32 m (no spaces) to turn text bright green. (Or, >equivalently, ESC [ 32;1 m ). Well, thanks for pointing that <attribute> (xx;xx;xx) part out to me, I wasn't *quite* aware of that, although I knew that the ;'s in the ANSI color codes had something to do with how the string worked. :) Wow, I can now go share my knew knowledge. ;) Oh yeah, n I've never really had any trouble with the "longer" way of doing it, which is, basically, doing everything separately. ^[[31m^[[42m^[[05mHello^[[0m Will output "Hello" with red text, a green background, and blinking just as well as ^[[31;42;05mHello^[[0m will, if I understood you correctly. Please correct me if I'm wrong. :P wyv
In alt.irc, wy...@cris.com said... | Oh yeah, n I've never really had any trouble with the "longer" way of doing | it, which is, basically, doing everything separately. | ^[[31m^[[42m^[[05mHello^[[0m | Will output "Hello" with red text, a green background, and blinking just as | well as | ^[[31;42;05mHello^[[0m | will, if I understood you correctly. Please correct me if I'm wrong. :P Both will work. The second is usually preferred because it's (a) less to type, and (b) makes the terminal do less work. One of those billionth-of- a-second things, you know. -James -- James Sneeringer :: Opinions expressed are not necessarily those jv...@ocslink.com :: of Oberlander Communications Systems, Inc.
Related ASCII art in the Gallery
Explore these categories from our collection of 11,000+ artworks:
Make your own ASCII art
Turn images, text or 3D into ASCII, or draw your own – right in your browser.
About this thread.
These messages were posted publicly to the newsgroup
alt.ascii-art
in 1996 and are mirrored here unchanged as part of the Historic Archives – only email addresses are masked.
The artwork and text belong to their original authors: if you copy a piece, keep the artist's initials or signature intact and credit them where you can.
Are you one of the authors? Contact us to get your posts attributed, connected to your artist profile, or removed.
Report this message
Help us keep the archive clean and accurate. Reports are reviewed by a person – nothing is changed automatically.