SHA256
8
0
forked from pool/slang
Files
slang/0001-Use-termcap.patch

52 lines
1.4 KiB
Diff
Raw Permalink Normal View History

- Update to version 2.3.3+git16.89d32bb: * pre2.3.4-16: Removed unnecessary chack for a NULL string in keymap.c:find_the_key, and corrected a potential memory leak in the sltoken.c:compile_byte_compiled_multistring function * pre2.3.4-15: Added UTF-16 surrogate handling to the expand_escaped_string function and json module * pre2.3.4-14: Added fcntl_getpipe_sz and fcntl_setpipe_sz functions to the fcntl module to get and set the buffer size for pipes * pre2.3.4-13: Initialize the variables provided by the %g operator to zero to not leak uninitialized data from the stack if not set by %P. (Miroslav Lichvar) * pre2.3.4-12: modules/chksum_sha2.c: Use memcpy to avoid type-punning warning * pre2.3.4-11: lib/timestamp.sl: Fixed a bug involving leap years * pre2.3.4-10: Updated the Unicode tables to v15 from v10 * pre2.3.4-9: src/slang.ver: Removed the undefined symbol SLang_Rline_Quit, which was causing a link error on Gentoo Linux (Michal Rostecki) * pre2.3.4-8: check for NULL return value from the ctime function * pre2.3.4-7: mkfiles/makefile.m32: Added install1 target to work with versions of mingw make that cannot process the install target. Previously this required editing the makefile (windows-specific) - download from git://git.jedsoft.org/git/slang.git * drop slang-2.3.3.tar.bz2.asc and slang.keyring - rename patches * slang.patch to 0001-Use-termcap.patch * slang-autoconf.patch to 0002-Fix-CFLAGS-and-generate-sl-config.h.patch * slang-fsuid.patch to 0003-Enforce-use-of-setfsuid.patch OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/slang?expand=0&rev=57
2025-01-07 18:06:44 +00:00
From 173077657c4a55afbcc4b09295179e6ac5bf8ccb Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Klaus=20K=C3=A4mpf?= <kkaempf@gmail.com>
Date: Tue, 7 Jan 2025 17:42:26 +0100
Subject: [PATCH 1/3] Use termcap
---
src/sldisply.c | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/src/sldisply.c b/src/sldisply.c
index 00d3acb..15e2440 100644
--- a/src/sldisply.c
+++ b/src/sldisply.c
@@ -2894,6 +2894,13 @@ int SLtt_initialize (SLFUTURE_CONST char *term)
Start_Abs_Cursor_Addressing_Mode = tt_tgetstr ("ti");
End_Abs_Cursor_Addressing_Mode = tt_tgetstr ("te");
+# ifndef USE_TERMCAP
+ /* Use the given terminal specification of the terminfo entries
+ * even if we have almost vtxxx.
+ */
+ Keypad_Init_Str = SLtt_tgetstr ("ks");
+ Keypad_Reset_Str = SLtt_tgetstr ("ke");
+# else
/* If I do this for vtxxx terminals, arrow keys start sending ESC O A,
* which I do not want. This is mainly for HP terminals.
*/
@@ -2911,6 +2918,7 @@ int SLtt_initialize (SLFUTURE_CONST char *term)
if (Del_N_Lines_Str == NULL) Del_N_Lines_Str = "\033[%dM";
if (Add_N_Lines_Str == NULL) Add_N_Lines_Str = "\033[%dL";
}
+#endif
Scroll_R_Str = tt_tgetstr("cs");
@@ -3100,10 +3108,12 @@ int SLtt_initialize (SLFUTURE_CONST char *term)
/* specific to vtxxx only */
void SLtt_enable_cursor_keys (void)
{
+#if 0
#ifdef __unix__
if (Vt100_Like)
#endif
tt_write_string("\033=\033[?1l");
+#endif
}
#ifdef VMS
--
2.47.1