1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-30 23:06:38 +02:00

exec: rename value "off" to "ansi" for option "-color" in command /exec

This commit is contained in:
Sebastien Helleu
2014-03-15 12:43:06 +01:00
parent 520509d62c
commit c92b186e01
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -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"
+2 -2
View File
@@ -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) ?
+1 -1
View File
@@ -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 */