diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-01-15 08:32:53 +0100 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-01-15 08:32:53 +0100 |
commit | 10308c6434dcc37e2135f36f4e6d263d5cf9b8df (patch) | |
tree | 9d8cee2fa423f3d2b888615a6ec577a1678cbc6e /LibC/termcap.cpp | |
parent | 6f61eb4a87fd12f07cc79708309c8b2c78f2de67 (diff) | |
download | serenity-10308c6434dcc37e2135f36f4e6d263d5cf9b8df.zip |
Let's not require TERM=ansi for tgetent() to work.
Diffstat (limited to 'LibC/termcap.cpp')
-rw-r--r-- | LibC/termcap.cpp | 11 |
1 files changed, 4 insertions, 7 deletions
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<char*>("\033[D"); - UP = const_cast<char*>("\033[A"); - return 1; - } - assert(false); + PC = '\0'; + BC = const_cast<char*>("\033[D"); + UP = const_cast<char*>("\033[A"); + return 1; } static HashMap<String, const char*>* caps = nullptr; |