mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-13 16:21:01 +00:00
Merged revisions 97645 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r97645 | russell | 2008-01-09 17:01:48 -0600 (Wed, 09 Jan 2008) | 2 lines Strip terminal sequences from the verbose messages ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@97646 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -45,6 +45,7 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
|
|||||||
#include "asterisk/cli.h"
|
#include "asterisk/cli.h"
|
||||||
#include "asterisk/utils.h"
|
#include "asterisk/utils.h"
|
||||||
#include "asterisk/paths.h"
|
#include "asterisk/paths.h"
|
||||||
|
#include "asterisk/term.h"
|
||||||
|
|
||||||
AST_MUTEX_DEFINE_STATIC(verb_lock);
|
AST_MUTEX_DEFINE_STATIC(verb_lock);
|
||||||
|
|
||||||
@@ -96,11 +97,16 @@ static int cleanup(void *useless)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static void __verboser(const char *stuff)
|
static void __verboser(const char *_stuff)
|
||||||
{
|
{
|
||||||
char *s2[2];
|
char *s2[2];
|
||||||
struct timeval tv;
|
struct timeval tv;
|
||||||
int ms;
|
int ms;
|
||||||
|
char *stuff;
|
||||||
|
|
||||||
|
stuff = ast_strdupa(_stuff);
|
||||||
|
term_strip(stuff, stuff, strlen(stuff) + 1);
|
||||||
|
|
||||||
s2[0] = (char *)stuff;
|
s2[0] = (char *)stuff;
|
||||||
s2[1] = NULL;
|
s2[1] = NULL;
|
||||||
gtk_clist_freeze(GTK_CLIST(verb));
|
gtk_clist_freeze(GTK_CLIST(verb));
|
||||||
|
Reference in New Issue
Block a user