Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37735030
en ru br
ALT Linux repos
S:2.3.3-alt1
5.0: 2.1.3-alt2
4.1: 2.1.3-alt2
4.0: 2.1.3-alt0.M40.2

Group :: System/Libraries
RPM: slang2

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: 020_termcap_emulation.patch
Download


diff -ruN slang-2.1.3-old/src/slang.h slang-2.1.3/src/slang.h
--- slang-2.1.3-old/src/slang.h	2005-03-23 06:54:30.000000000 +0000
+++ slang-2.1.3/src/slang.h	2005-03-31 21:17:31.524770128 +0100
@@ -1609,6 +1609,9 @@
 SL_EXTERN char *SLtt_tigetent (char *);
 SL_EXTERN char *SLtt_tigetstr (char *, char **);
 SL_EXTERN int SLtt_tigetnum (char *, char **);
+SL_EXTERN int SLtt_tgetent(char *name);
+SL_EXTERN char *SLtt_tgoto(char *cap, int col, int row);
+SL_EXTERN int SLtt_tputs(char *str, int affcnt, int (*putc)(int));
 # endif
 #endif
 
diff -ruN slang-2.1.3-old/src/sldisply.c slang-2.1.3/src/sldisply.c
--- slang-2.1.3-old/src/sldisply.c	2005-03-23 06:54:30.000000000 +0000
+++ slang-2.1.3/src/sldisply.c	2005-03-31 21:16:32.129799536 +0100
@@ -2236,6 +2236,29 @@
 }
 #endif
 
+int Sltt_tgetent(char *term)
+{
+   return SLtt_initialize(term) == 0;
+}
+
+int SLtt_tputs(char *str, int affcnt, int (*p)(int))
+{
+   while (*str) (*p)(*str++);
+   return 0;
+}
+
+char *SLtt_tgoto(char *cap, int col, int row)
+{
+  static char buf[64];
+
+  /* beware of overflows. 2^64 is 20 bytes printed */
+  if (strlen(cap) > 23)
+	strcpy(buf, "capability too long");
+  else
+	tt_sprintf(buf, sizeof(buf), cap, row, col);
+  return buf;
+}
+
 static int Vt100_Like = 0;
 
 void SLtt_get_terminfo (void)
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin