mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-26 17:40:27 +00:00
Let's not require TERM=ansi for tgetent() to work.
This commit is contained in:
parent
6f61eb4a87
commit
10308c6434
Notes:
sideshowbarker
2024-07-19 16:02:12 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/10308c6434d
1 changed files with 4 additions and 7 deletions
|
@ -18,13 +18,10 @@ int tgetent(char* bp, const char* name)
|
||||||
#ifdef TERMCAP_DEBUG
|
#ifdef TERMCAP_DEBUG
|
||||||
fprintf(stderr, "tgetent: bp=%p, name='%s'\n", bp, name);
|
fprintf(stderr, "tgetent: bp=%p, name='%s'\n", bp, name);
|
||||||
#endif
|
#endif
|
||||||
if (!strcmp(name, "ansi")) {
|
PC = '\0';
|
||||||
PC = '\0';
|
BC = const_cast<char*>("\033[D");
|
||||||
BC = const_cast<char*>("\033[D");
|
UP = const_cast<char*>("\033[A");
|
||||||
UP = const_cast<char*>("\033[A");
|
return 1;
|
||||||
return 1;
|
|
||||||
}
|
|
||||||
assert(false);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static HashMap<String, const char*>* caps = nullptr;
|
static HashMap<String, const char*>* caps = nullptr;
|
||||||
|
|
Loading…
Reference in a new issue