diff options
author | gotmor <gotmor@f2baff5b-bf2c-0410-a398-912abdc3d8b2> | 2007-07-19 12:50:58 +0000 |
---|---|---|
committer | gotmor <gotmor@f2baff5b-bf2c-0410-a398-912abdc3d8b2> | 2007-07-19 12:50:58 +0000 |
commit | e4978330dc81571a625be90d0b88a60f63978f95 (patch) | |
tree | 6f116cc6fb53ea4f865ae28bc1f96de9b1ce5196 /README.dzen | |
parent | 8a03a06c6555f2e754eeb0f814f0a6b1944d9dfc (diff) | |
download | dzen-e4978330dc81571a625be90d0b88a60f63978f95.tar.gz dzen-e4978330dc81571a625be90d0b88a60f63978f95.zip |
changed a_menuexec and a_menuprint to use the new parser
ready for release 0.6.0
git-svn-id: http://dzen.googlecode.com/svn/trunk@131 f2baff5b-bf2c-0410-a398-912abdc3d8b2
Diffstat (limited to 'README.dzen')
-rw-r--r-- | README.dzen | 39 |
1 files changed, 23 insertions, 16 deletions
diff --git a/README.dzen b/README.dzen index 4fe689b..8d279e2 100644 --- a/README.dzen +++ b/README.dzen @@ -374,34 +374,41 @@ of lines to the slave window as defined by the parameter to '-l'. This feature allows to dynamically (at runtime) set foreground and background colors for dzen's input (colored text) working in all -modes (title only, slave window and menu mode). You can specify the -colors by using their symbolic names or '#rrggbb' values. +modes (title only, slave window and menu mode). -The input must be in the following format: +Syntax: - * Setting only the foreground color: +Foreground color: ^^fg(color) +Background color: ^^bg(color) - ^fg(red)I'm red text ^fg(blue)I am blue - Escaped version, if you view this file with dzen: - ^^fg(red)I'm red text ^^fg(blue)I am blue +These commands can appear anywhere and in any combination in dzen's +input. The color can be specified either as symbolic name (e.g. red, +darkgreen, etc.) or as #rrggbb hex-value (e.g. #ffffaa). +Doubling the '^^' character removes the special meaning from it. - * Setting foreground and/or background colors: +Some examples: - ^bg(#ffaaaa)The ^fg(yellow)text to ^bg(blue)^fg(orange)colorize + Input: + ^^fg(red)I'm red text ^^fg(blue)I am blue - Escaped version, if you view this file with dzen: - ^^bg(#ffaaaa)The ^^fg(yellow)text to ^^bg(blue)^^fg(orange)colorize + Resulting in: + ^fg(red)I'm red text ^fg(blue)I am blue - * If you need to print '^^' characters double them in order to escape them - from being interpreted + Input: + ^^bg(#ffaaaa)The ^^fg(yellow)text to ^^bg(blue)^^fg(orange)colorize - ^fg(grey70)Some text containing ^^ characters + Resulting in: + ^bg(#ffaaaa)The ^fg(yellow)text to ^bg(blue)^fg(orange)colorize - Escaped version, if you view this file with dzen: - ^^fg(grey70)Some text containing ^^^^ characters + + Input: + ^^fg(grey70)Some text containing ^^^^ characters + + Resulting in: + ^fg(grey70)Some text containing ^^ characters |