[asterisk-commits] russell: branch 1.4 r97645 - /branches/1.4/pbx/pbx_gtkconsole.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Wed Jan 9 17:01:48 CST 2008
Author: russell
Date: Wed Jan 9 17:01:48 2008
New Revision: 97645
URL: http://svn.digium.com/view/asterisk?view=rev&rev=97645
Log:
Strip terminal sequences from the verbose messages
Modified:
branches/1.4/pbx/pbx_gtkconsole.c
Modified: branches/1.4/pbx/pbx_gtkconsole.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/pbx/pbx_gtkconsole.c?view=diff&rev=97645&r1=97644&r2=97645
==============================================================================
--- branches/1.4/pbx/pbx_gtkconsole.c (original)
+++ branches/1.4/pbx/pbx_gtkconsole.c Wed Jan 9 17:01:48 2008
@@ -52,6 +52,7 @@
#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 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));
More information about the asterisk-commits
mailing list