forked from pool/slang
52 lines
1.4 KiB
Diff
52 lines
1.4 KiB
Diff
|
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
|
||
|
|