diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2011-10-15 13:54:53 +0200 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2011-10-15 13:54:53 +0200 |
commit | ac7c27949b8fb52fa2c7cb06fdf0d176607419b0 (patch) | |
tree | 656f2a19f607e048ddeba9b65d4b444657048abf /doc/en | |
parent | 0bbddad6a67c3349e5b3331aa863d031ba8f7bd3 (diff) | |
download | weechat-ac7c27949b8fb52fa2c7cb06fdf0d176607419b0.zip |
core: add color attribute "|" and value "resetcolor" for function weechat_color in plugin API (bug #34550)
Diffstat (limited to 'doc/en')
-rw-r--r-- | doc/en/weechat_plugin_api.en.txt | 22 | ||||
-rw-r--r-- | doc/en/weechat_user.en.txt | 8 |
2 files changed, 26 insertions, 4 deletions
diff --git a/doc/en/weechat_plugin_api.en.txt b/doc/en/weechat_plugin_api.en.txt index 9b375366e..4609253ad 100644 --- a/doc/en/weechat_plugin_api.en.txt +++ b/doc/en/weechat_plugin_api.en.txt @@ -5878,7 +5878,7 @@ Arguments: * 'color_name': name of color, one of: ** WeeChat option name (from weechat.color.xxx), for example 'chat_delimiters' -** color with optional background, for example 'yellow' or 'yellow,red' +** color with optional attributes/background (see below) ** attribute: *** 'bold': set bold *** '-bold': remove bold @@ -5892,6 +5892,26 @@ Arguments: *** 'bar_fg': foreground color for bar *** 'bar_delim': delimiters color for bar *** 'bar_bg': background color for bar +** reset: +*** 'reset': reset color and attributes +*** 'resetcolor': reset color (keep attributes) (_new in version 0.3.6_) + +Format of color is: attributes (optional) + color name + ",background" +(optional). Possible attributes are: + +* `*` : bold text +* `!` : reverse video +* `_` : underlined text +* `|` : keep attributes: do not reset bold/reverse/underlined when changing + color (_new in version 0.3.6_) + +Examples: + +* `yellow` : yellow +* `_green` : underlined green +* `*214` : bold orange +* `yellow,red` : yellow on red +* `|cyan` : cyan (and keep any attribute which was set previously) Return value: diff --git a/doc/en/weechat_user.en.txt b/doc/en/weechat_user.en.txt index 22dba7a60..35b0a5665 100644 --- a/doc/en/weechat_user.en.txt +++ b/doc/en/weechat_user.en.txt @@ -932,9 +932,11 @@ Attributes It is possible to use some attributes for colors. One or more attributes can be added before color name or number: -* `*`: bold text -* `!`: reverse video -* `_`: underlined text +* `*` : bold text +* `!` : reverse video +* `_` : underlined text +* `|` : keep attributes: do not reset bold/reverse/underlined when changing + color For example if you want self nick as white underlined, do: |