Merges from Irssi CVS.
[crypto.git] / apps / irssi / docs / formats.txt
1
2  Irssi's colors that you can use in text formats, hilights, etc. :
3
4                            text            text            background
5    ---------------------------------------------------------------------
6    %k      %K      %0      black           dark grey       black
7    %r      %R      %1      red             bold red        red
8    %g      %G      %2      green           bold green      green
9    %y      %Y      %3      yellow          bold yellow     yellow
10    %b      %B      %4      blue            bold blue       blue
11    %m      %M      %5      magenta         bold magenta    magenta
12    %p      %P              magenta (think: purple)
13    %c      %C      %6      cyan            bold cyan       cyan
14    %w      %W      %7      white           bold white      white
15    %n      %N              Turn off all colors and other formatting
16    %F                      Blinking on/off (think: flash)
17    %U                      Underline on/off
18    %8                      Reverse on/off
19    %9      %_              Bold on/off
20    %:                      Insert newline
21    %|                      Marks the indentation position
22    %#                      Monospace font on/off (useful with lists and GUI)
23    %%                      A single %
24
25  In .theme files %n works a bit differently. See default.theme
26  for more information.
27
28
29  MIRC colors that you can use when writing text to channel:
30
31                foreground (fg)     background (bg)
32    -------------------------------------------------------
33     0          white               light gray   + blinking fg
34     1          black               black
35     2          blue                blue
36     3          green               green
37     4          light red           red          + blinking fg
38     5          red                 red
39     6          magenta (purple)    magenta
40     7          orange              orange
41     8          yellow              orange       + blinking fg
42     9          light green         green        + blinking fg
43     10         cyan                cyan         
44     11         light cyan          cyan         + blinking fg
45     12         light blue          blue         + blinking fg
46     13         light magenta       magenta      + blinking fg
47     14         gray                black        + blinking fg 
48     15         light gray          light gray
49
50  These colors may differ depending on your terminal. In particular
51  the meaning for background may be the same as for the foreground
52  (bright colors, no blinking), and orange often looks like brown or
53  dark yellow.
54
55  How to use these colors ('#' means a number as MIRC color code):
56  
57  <Ctrl>-b        set bold
58  <Ctrl>-c#[,#]   set foreground and optionally background color
59  <Ctrl>-o        reset all formats to plain text
60  <Ctrl>-v        set inverted color mode
61  <Ctrl>-_        set underline
62  <Ctrl>-7        same as <Ctrl>-_
63  
64  To reset a mode set it again, f.e.
65    <Ctrl-C>3<Ctrl-V>FOO<Ctrl-V>BAR
66  creates black on green FOO followed by a green on black BAR