From 10308c6434dcc37e2135f36f4e6d263d5cf9b8df Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Tue, 15 Jan 2019 08:32:53 +0100 Subject: Let's not require TERM=ansi for tgetent() to work. --- LibC/termcap.cpp | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'LibC/termcap.cpp') diff --git a/LibC/termcap.cpp b/LibC/termcap.cpp index 8db14ee40c..5054dc9178 100644 --- a/LibC/termcap.cpp +++ b/LibC/termcap.cpp @@ -18,13 +18,10 @@ int tgetent(char* bp, const char* name) #ifdef TERMCAP_DEBUG fprintf(stderr, "tgetent: bp=%p, name='%s'\n", bp, name); #endif - if (!strcmp(name, "ansi")) { - PC = '\0'; - BC = const_cast("\033[D"); - UP = const_cast("\033[A"); - return 1; - } - assert(false); + PC = '\0'; + BC = const_cast("\033[D"); + UP = const_cast("\033[A"); + return 1; } static HashMap* caps = nullptr; -- cgit v1.2.3