Settings

The page will reload to apply your changes.
Theme

ASCII Art Font

ASCII Art Menu

Original Usenet message from alt.ascii-art, 27 Nov 1996.
Re: Color IRC codes?

Re: Color IRC codes?

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/>

Original message headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fc6b5,c932c3d68d52886d
X-Google-Attributes: gidfc6b5,public
X-Google-Thread: f996b,c932c3d68d52886d
X-Google-Attributes: gidf996b,public
From: Russ Allbery <rr...@cs.stanford.edu>
Subject: Re: Color IRC codes?
Date: 1996/11/27
Message-ID: <qum...@cyclone.stanford.edu>#1/1
X-Deja-AN: 201008532
sender: eag...@cyclone.stanford.edu
references: <57crk6$h3...@news1.epix.net> <57da93$lm...@herald.concentric.net>
organization: The Eyrie
newsgroups: alt.ascii-art,alt.irc
About this message. This message was posted publicly to the newsgroup alt.ascii-art in 1996 and is 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 the author? 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.

Help classify this post