From af36e55080847cb9c550ea33f5f41234255104ef Mon Sep 17 00:00:00 2001 From: Jason Parker Date: Thu, 10 Feb 2011 22:33:09 +0000 Subject: [PATCH] Remove color when executing commands via a remote console. Essentially this makes '-x' imply '-n' on rasterisk. This was done in a different and incomplete way previously, which I'll be reverting shortly. (issue #18776) Reported by: alecdavis git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@307534 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- main/asterisk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/asterisk.c b/main/asterisk.c index 6e69aacc5f..58bccfcbbc 100644 --- a/main/asterisk.c +++ b/main/asterisk.c @@ -2836,7 +2836,7 @@ int main(int argc, char *argv[]) ast_set_flag(&ast_options, AST_OPT_FLAG_TIMESTAMP); break; case 'x': - ast_set_flag(&ast_options, AST_OPT_FLAG_EXEC); + ast_set_flag(&ast_options, AST_OPT_FLAG_EXEC | AST_OPT_FLAG_NO_COLOR); xarg = ast_strdupa(optarg); break; case 'C': -- 2.47.2