1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 21:18:14 +00:00

Let's not require TERM=ansi for tgetent() to work.

This commit is contained in:
Andreas Kling 2019-01-15 08:32:53 +01:00
parent 6f61eb4a87
commit 10308c6434

View file

@ -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;