summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>1999-10-29 19:40:49 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>1999-10-29 19:40:49 +0000
commit2a18a9a0dc88b34bdcf4ba9c6808f688769ee237 (patch)
treeee58228a8423e8bde0e6288687eef124058b749f
parent260c7928045e2a632d4fb325fb0f71d638499874 (diff)
downloadirssi-2a18a9a0dc88b34bdcf4ba9c6808f688769ee237.zip
Text format specs
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@65 dbcabf3a-b0e7-0310-adc4-f8d773084564
-rw-r--r--docs/FORMATS25
1 files changed, 25 insertions, 0 deletions
diff --git a/docs/FORMATS b/docs/FORMATS
new file mode 100644
index 00000000..54101c64
--- /dev/null
+++ b/docs/FORMATS
@@ -0,0 +1,25 @@
+ text text background
+ ---------------------------------------------------------------------
+ %k %K %0 black bold black black
+ %r %R %1 red bold red red
+ %g %G %2 green bold green green
+ %y %Y %3 yellow bold yellow yellow
+ %b %B %4 blue bold blue blue
+ %m %M %5 magenta bold magenta magenta
+ %p %P magenta (think: purple)
+ %c %C %6 cyan bold cyan cyan
+ %w %W %7 white bold white white
+ %n All colors turned off
+ %U Underline on/off
+ %8 Reverse on/off
+ %9 %_ Bold on/off
+ %: Insert newline
+ %% A single %
+
+parameter handling:
+
+$[30]1 prints parameter 1 cut/padded to 30 chars
+$[!30]1 prints parameter 1 padded to min. 30 chars
+$[-30]1 prints parameter 1 right padded
+$[30?]1 prints parameter 1 padded with '?' characters
+$[30.0]1 prints parameter 1 padded with '0' characters