Files
termux-packages/packages/elinks/elinks-skip-xterm-check.patch
2025-12-29 07:41:12 +00:00

23 lines
398 B
Diff

diff --git a/src/osdep/osdep.c b/src/osdep/osdep.c
index 4aabc61..758d99b 100644
--- a/src/osdep/osdep.c
+++ b/src/osdep/osdep.c
@@ -349,6 +349,7 @@ is_xterm(void)
return 1;
}
#endif
+#ifndef __TERMUX__
static int xt = -1;
if (xt == -1) {
@@ -370,6 +371,9 @@ is_xterm(void)
}
return xt;
+#else
+ return 1; /* Skip checking and always return true on Termux */
+#endif
}
#endif