summaryrefslogtreecommitdiff
path: root/main/term.c
diff options
context:
space:
mode:
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++) {