aboutsummaryrefslogtreecommitdiff
path: root/ui-curses.c
diff options
context:
space:
mode:
Diffstat (limited to 'ui-curses.c')
-rw-r--r--ui-curses.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui-curses.c b/ui-curses.c
index 4b8387b..58c1298 100644
--- a/ui-curses.c
+++ b/ui-curses.c
@@ -1081,7 +1081,7 @@ Ui *ui_curses_new(void) {
term = "xterm";
if (!newterm(term, stderr, stdin)) {
snprintf(uic->info, sizeof(uic->info), "Warning: unknown term `%s'", term);
- if (!newterm("xterm-256color", stderr, stdin))
+ if (!newterm(strstr(term, "-256color") ? "xterm-256color" : "xterm", stderr, stdin))
goto err;
}
start_color();