search for: verbose_exec

Displaying 1 result from an estimated 1 matches for "verbose_exec".

2009 Jul 26
2
Verbose() messages go unnoticed
...e output and that should tell the user why a call to 123 fails but users fre- quently crank up the verbosity to 3 or 10 so our messages go unnoticed in many cases. My idea was to use terminal escape sequences to make my messages bold and black on yellow background. apps/app_verbose.c: static int verbose_exec(struct ast_channel *chan, void *data) { ... switch (vsize) { case 0: - ast_verbose("%s\n", vtext); + ast_verbose("\x1B[103;30;1m %s \x1B[0m\n", vtext); break; case 1: - ast_verb...