aboutsummaryrefslogtreecommitdiffstats
path: root/main/term.c
diff options
context:
space:
mode:
authortilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2007-11-03 14:19:47 +0000
committertilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2007-11-03 14:19:47 +0000
commit69e206ffb4cc10cf3397d357418b716563624aa4 (patch)
treeae2300d2fd486d07df7333433586a82f4557d4a5 /main/term.c
parent661a6413fbc0fa8bcee155cf86d2e8c343183b30 (diff)
Revert commit #86119. Some users intentionally do not want colorized terminals, so this was a misfeature.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@88437 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/term.c')
-rw-r--r--main/term.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/main/term.c b/main/term.c
index cb05a8f0f..d051338d8 100644
--- a/main/term.c
+++ b/main/term.c
@@ -80,16 +80,8 @@ int ast_term_init(void)
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;
-#endif
- if (ast_opt_no_color)
+ if (!ast_opt_console || ast_opt_no_color || !ast_opt_no_fork)
return 0;
for (i=0 ;; i++) {