mirror of https://github.com/sipwise/asterisk.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
504 B
22 lines
504 B
--- main/term.c 2006-12-27 19:06:56.000000000 -0300
|
|
+++ main/term.c 2009-11-06 19:06:43.000000000 -0300
|
|
@@ -80,8 +80,17 @@
|
|
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++) {
|