diff options
author | Timo Sirainen <cras@irssi.org> | 2002-02-15 22:22:46 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2002-02-15 22:22:46 +0000 |
commit | b3beb2c49ea183533d895e74ee1c3bd065dc8e22 (patch) | |
tree | 8c9ab9f2457eedca2a64c4b3b95a06810c97faed /src/fe-text | |
parent | 0e4bf301ca52e24582b26fbea8f4f922e0ee8281 (diff) | |
download | irssi-b3beb2c49ea183533d895e74ee1c3bd065dc8e22.zip |
Added _very_ small help for /statusbar + their SYNTAXes.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2462 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/fe-text')
-rw-r--r-- | src/fe-text/statusbar-config.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/fe-text/statusbar-config.c b/src/fe-text/statusbar-config.c index 5c5b8316..a16c7545 100644 --- a/src/fe-text/statusbar-config.c +++ b/src/fe-text/statusbar-config.c @@ -251,18 +251,21 @@ static void read_statusbar_config(void) statusbars_create_window_bars(); } +/* SYNTAX: STATUSBAR <name> ENABLE */ static void cmd_statusbar_enable(const char *data, void *server, void *item, CONFIG_NODE *node) { iconfig_node_set_str(node, "disabled", NULL); } +/* SYNTAX: STATUSBAR <name> DISABLE */ static void cmd_statusbar_disable(const char *data, void *server, void *item, CONFIG_NODE *node) { iconfig_node_set_bool(node, "disabled", TRUE); } +/* SYNTAX: STATUSBAR <name> TYPE window|root */ static void cmd_statusbar_type(const char *data, void *server, void *item, CONFIG_NODE *node) { @@ -276,6 +279,7 @@ static void cmd_statusbar_type(const char *data, void *server, } } +/* SYNTAX: STATUSBAR <name> PLACEMENT top|bottom */ static void cmd_statusbar_placement(const char *data, void *server, void *item, CONFIG_NODE *node) { @@ -289,12 +293,14 @@ static void cmd_statusbar_placement(const char *data, void *server, } } +/* SYNTAX: STATUSBAR <name> POSITION <num> */ static void cmd_statusbar_position(const char *data, void *server, void *item, CONFIG_NODE *node) { iconfig_node_set_int(node, "position", atoi(data)); } +/* SYNTAX: STATUSBAR <name> VISIBLE always|active|inactive */ static void cmd_statusbar_visible(CONFIG_NODE *node, void *server, void *item, const char *data) { @@ -345,6 +351,8 @@ static CONFIG_NODE *statusbar_items_section(CONFIG_NODE *parent) return parent; } +/* SYNTAX: STATUSBAR <name> ADD [-before | -after <item>] + [-priority #] [-alignment left|right] <item> */ static void cmd_statusbar_add(const char *data, void *server, void *item, CONFIG_NODE *node) { @@ -385,6 +393,7 @@ static void cmd_statusbar_add(const char *data, void *server, cmd_params_free(free_arg); } +/* SYNTAX: STATUSBAR <name> REMOVE <item> */ static void cmd_statusbar_remove(const char *data, void *server, void *item, CONFIG_NODE *node) { @@ -400,7 +409,6 @@ static void cmd_statusbar_remove(const char *data, void *server, } } -/* SYNTAX: STATUSBAR <name> [enable | disable] | [add|remove <item>] */ static void cmd_statusbar(const char *data) { CONFIG_NODE *node; |