e98f2719e7feb0a1a2297939a6195cb8e84fe18d
[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           bold black      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    %%                      A single %
23
24  In .theme files %n works a bit differently. See default.theme
25  for more information.
26
27
28  MIRC colors that you can use when writing text to channel:
29
30                foreground (fg)     background (bg)
31    -------------------------------------------------------
32     0          white               light gray   + blinking fg
33     1          black               black
34     2          blue                blue
35     3          green               green
36     4          light red           red          + blinking fg
37     5          red                 red
38     6          magenta (purple)    magenta
39     7          orange              orange
40     8          yellow              orange       + blinking fg
41     9          light green         green        + blinking fg
42     10         cyan                cyan         
43     11         light cyan          cyan         + blinking fg
44     12         light blue          blue         + blinking fg
45     13         light magenta       magenta      + blinking fg
46     14         gray                black        + blinking fg 
47     15         light gray          light gray
48
49  These colors may differ depending on your terminal. In particular
50  the meaning for background may be the same as for the foreground
51  (bright colors, no blinking), and orange often looks like brown or
52  dark yellow.
53
54  How to use these colors ('#' means a number as MIRC color code):
55  
56  <Ctrl>-b        set bold
57  <Ctrl>-c#[,#]   set foreground and optionally background color
58  <Ctrl>-o        reset all formats to plain text
59  <Ctrl>-v        set inverted color mode
60  <Ctrl>-_        set underline
61  <Ctrl>-7        same as <Ctrl>-_
62  
63  To reset a mode set it again, f.e.
64    <Ctrl-C>3<Ctrl-V>FOO<Ctrl-V>BAR
65  creates black on green FOO followed by a green on black BAR