Re: increasing LINES and COLS [was Re: suggestion]



Hello Roland,

On Mon, 2004-11-01 at 08:36, Roland Illig wrote:
> SLang (in this case mcslang) does not crash when resizing vertically to 
> $many lines. Rxvt only shows the first 300 lines (the rest is white), 
> and SLang only draws the first 256 lines of these.

Maybe we should not fix mcslang yet, but replace it with slang-1.4.9
after the release of mc-4.6.1. However the version test that Pavel
suggested to increase the number of lines for users that link against
slang > 1.4.7 should be ok to add as a temporary fix. Patch attached.

Leonard.

-- 
mount -t life -o ro /dev/dna /genetic/research

--- src/slint.c.000	2004-09-26 00:02:15.000000000 +0200
+++ src/slint.c	2004-10-31 23:07:16.000000000 +0100
@@ -183,7 +183,10 @@ slang_init (void)
     * (as of S-Lang 1.4.4). Detect it and abort. Also detect extremely
     * small, large and negative screen dimensions.
     */
-    if ((COLS < 10) || (LINES < 5) || (COLS > 255) || (LINES > 255)) {
+    if ((COLS < 10) || (LINES < 5) ||
+    (SLang_Version < 10407 && (COLS > 255 || LINES > 255)) ||
+    (SLang_Version >= 10407 && (COLS > 512 || LINES > 512))) {
+
 	fprintf (stderr,
 		 _("Screen size %dx%d is not supported.\n"
 		   "Check the TERM environment variable.\n"),


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]