aboutsummaryrefslogtreecommitdiff
path: root/ui-curses.c
diff options
context:
space:
mode:
Diffstat (limited to 'ui-curses.c')
-rw-r--r--ui-curses.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/ui-curses.c b/ui-curses.c
index 30cf516..4b8387b 100644
--- a/ui-curses.c
+++ b/ui-curses.c
@@ -1079,8 +1079,11 @@ Ui *ui_curses_new(void) {
char *term = getenv("TERM");
if (!term)
term = "xterm";
- if (!newterm(term, stderr, stdin))
- goto err;
+ if (!newterm(term, stderr, stdin)) {
+ snprintf(uic->info, sizeof(uic->info), "Warning: unknown term `%s'", term);
+ if (!newterm("xterm-256color", stderr, stdin))
+ goto err;
+ }
start_color();
use_default_colors();
raw();