[asterisk-users] colors in the console
Michel R Vaillancourt
mvaillancourt at neoxo.com
Thu Feb 15 14:46:15 MST 2007
>
> You seem to start asterisk with safe_asterisk. That script
> starts asterisk on a console of its own. Maybe it wa done to
> allow the use of colors.
>
> If you want a plain 'asterisk' to run with colors, try the patch in
> http://bugs.digium.com/view.php?id=9048
>
Hi, Tzafrir ... The patch you submitted doesn't work with earlier
1.2 versions of Ast due to renaming of variables... This version does work
in those cases:
/*------- begin ---------*/
--- term.c 2006-12-13 09:24:11.000000000 -0500
+++ term.c 2007-02-15 16:28:24.000000000 -0500
@@ -78,9 +78,12 @@
char buffer[512] = "";
int termfd = -1, parseokay = 0, i;
+ if (!option_console || !option_nofork)
+ term = "xterm";
+
if (!term)
return 0;
- if (!option_console || option_nocolor || !option_nofork)
+ if (option_nocolor)
return 0;
for (i=0 ;; i++) {
/*--------- end ---------*/
--Michel
More information about the asterisk-users
mailing list