mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-02-07 06:53:33 +00:00
Make Windows REPLs great again
This commit is contained in:
parent
8e14b27749
commit
77be460290
1 changed files with 1 additions and 3 deletions
4
third_party/linenoise/linenoise.c
vendored
4
third_party/linenoise/linenoise.c
vendored
|
@ -408,9 +408,7 @@ static int linenoiseIsUnsupportedTerm(void) {
|
||||||
char *term;
|
char *term;
|
||||||
static char once, res;
|
static char once, res;
|
||||||
if (!once) {
|
if (!once) {
|
||||||
if (IsWindows()) {
|
if ((term = getenv("TERM"))) {
|
||||||
res = 1;
|
|
||||||
} else if ((term = getenv("TERM"))) {
|
|
||||||
for (i = 0; i < sizeof(kUnsupported) / sizeof(*kUnsupported); i++) {
|
for (i = 0; i < sizeof(kUnsupported) / sizeof(*kUnsupported); i++) {
|
||||||
if (!strcasecmp(term, kUnsupported[i])) {
|
if (!strcasecmp(term, kUnsupported[i])) {
|
||||||
res = 1;
|
res = 1;
|
||||||
|
|
Loading…
Reference in a new issue