[asterisk-commits] tilghman: trunk r86119 - /trunk/main/term.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Wed Oct 17 12:06:47 CDT 2007
Author: tilghman
Date: Wed Oct 17 12:06:47 2007
New Revision: 86119
URL: http://svn.digium.com/view/asterisk?view=rev&rev=86119
Log:
Support color on certain platforms, even when started at boot (before TERM is set)
Closes issue #9048
Modified:
trunk/main/term.c
Modified: trunk/main/term.c
URL: http://svn.digium.com/view/asterisk/trunk/main/term.c?view=diff&rev=86119&r1=86118&r2=86119
==============================================================================
--- trunk/main/term.c (original)
+++ trunk/main/term.c Wed Oct 17 12:06:47 2007
@@ -80,8 +80,16 @@
int termfd = -1, parseokay = 0, i;
if (!term)
+#ifdef linux
+ term = "linux";
+#elif defined(__OpenBSD__) || defined(__NetBSD__) || defined(__FreeBSD__)
+ term = "cons25";
+#elif defined(SOLARIS)
+ term = "sun-color";
+#else
return 0;
- if (!ast_opt_console || ast_opt_no_color || !ast_opt_no_fork)
+#endif
+ if (ast_opt_no_color)
return 0;
for (i=0 ;; i++) {
More information about the asterisk-commits
mailing list