From c92b186e01bc689dd8e9ef3950a97474605f980a Mon Sep 17 00:00:00 2001 From: Sebastien Helleu Date: Sat, 15 Mar 2014 12:43:06 +0100 Subject: [PATCH] exec: rename value "off" to "ansi" for option "-color" in command /exec --- src/plugins/exec/exec-command.c | 2 +- src/plugins/exec/exec.c | 4 ++-- src/plugins/exec/exec.h | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/plugins/exec/exec-command.c b/src/plugins/exec/exec-command.c index 09230c195..23e2a5fc7 100644 --- a/src/plugins/exec/exec-command.c +++ b/src/plugins/exec/exec-command.c @@ -714,7 +714,7 @@ exec_command_init () " -ln: display line numbers (default in new buffer only)\n" " -noln: don't display line numbers\n" " -color: action on ANSI colors in output:\n" - " off: keep ANSI codes as-is\n" + " ansi: keep ANSI codes as-is\n" " decode: convert ANSI colors to WeeChat/IRC (default)\n" " strip: remove ANSI colors\n" " -rc: display return code (default)\n" diff --git a/src/plugins/exec/exec.c b/src/plugins/exec/exec.c index a8184d680..a4c137b23 100644 --- a/src/plugins/exec/exec.c +++ b/src/plugins/exec/exec.c @@ -45,7 +45,7 @@ struct t_exec_cmd *last_exec_cmd = NULL; /* last executed command */ int exec_cmds_count = 0; /* number of executed commands */ char *exec_color_string[EXEC_NUM_COLORS] = -{ "off", "decode", "strip" }; +{ "ansi", "decode", "strip" }; /* @@ -252,7 +252,7 @@ exec_command_display_output (struct t_exec_cmd *exec_cmd, if (!line) break; - if (exec_cmd->color != EXEC_COLOR_OFF) + if (exec_cmd->color != EXEC_COLOR_ANSI) { line2 = weechat_hook_modifier_exec ( (exec_cmd->output_to_buffer) ? diff --git a/src/plugins/exec/exec.h b/src/plugins/exec/exec.h index 9958ed7a3..c5f46092d 100644 --- a/src/plugins/exec/exec.h +++ b/src/plugins/exec/exec.h @@ -26,7 +26,7 @@ #define EXEC_PLUGIN_NAME "exec" enum t_exec_color { - EXEC_COLOR_OFF = 0, + EXEC_COLOR_ANSI = 0, EXEC_COLOR_DECODE, EXEC_COLOR_STRIP, /* number of color actions */