aboutsummaryrefslogtreecommitdiffstats
path: root/pbx
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2008-01-09 23:01:48 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2008-01-09 23:01:48 +0000
commit54c5cd5692d6b99931bc160803e4288e219b25f8 (patch)
tree5af49dc2cf3c0e91234e4a40c7062df6c80af13d /pbx
parent0d15843185f98f9ce89fff75b95543bcef5eae3f (diff)
Strip terminal sequences from the verbose messages
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@97645 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'pbx')
-rw-r--r--pbx/pbx_gtkconsole.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/pbx/pbx_gtkconsole.c b/pbx/pbx_gtkconsole.c
index a566040e7..4a4c3ba45 100644
--- a/pbx/pbx_gtkconsole.c
+++ b/pbx/pbx_gtkconsole.c
@@ -52,6 +52,7 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
#include "asterisk/cli.h"
#include "asterisk/utils.h"
#include "asterisk/paths.h"
+#include "asterisk/term.h"
AST_MUTEX_DEFINE_STATIC(verb_lock);
@@ -103,11 +104,16 @@ static int cleanup(void *useless)
}
-static void __verboser(const char *stuff)
+static void __verboser(const char *_stuff)
{
char *s2[2];
struct timeval tv;
int ms;
+ char *stuff;
+
+ stuff = ast_strdupa(_stuff);
+ term_strip(stuff, stuff, strlen(stuff) + 1);
+
s2[0] = (char *)stuff;
s2[1] = NULL;
gtk_clist_freeze(GTK_CLIST(verb));