about summary refs log tree commit diff stats
path: root/src/LYrcFile.c
diff options
context:
space:
mode:
authorThomas E. Dickey <dickey@invisible-island.net>1998-09-30 21:18:18 -0400
committerThomas E. Dickey <dickey@invisible-island.net>1998-09-30 21:18:18 -0400
commit4fa34a534d3c5600a483a4a0b2f40939dee4ec14 (patch)
tree55d81c948ed2fb776ba5bd4941e6bcd758e39747 /src/LYrcFile.c
parent6b6388d0c6a89daaa3c95fc3aa54e38e71c7cc15 (diff)
downloadlynx-snapshots-4fa34a534d3c5600a483a4a0b2f40939dee4ec14.tar.gz
snapshot of project "lynx", label v2-8-1pre_5
Diffstat (limited to 'src/LYrcFile.c')
-rw-r--r--src/LYrcFile.c27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/LYrcFile.c b/src/LYrcFile.c
index ef66d6dc..c3968a31 100644
--- a/src/LYrcFile.c
+++ b/src/LYrcFile.c
@@ -509,6 +509,20 @@ PUBLIC void read_rc NOPARAMS
 	     else
 		local_exec = FALSE;
 
+#ifdef DISP_PARTIAL
+	/*
+	 * Partial display logic--set the threshold # of lines before
+	 * Lynx redraws the screen
+	 */
+	} else if ((cp = LYstrstr(line_buffer, "partial_thres")) != NULL &&
+		   cp-line_buffer < number_sign) {
+	    if ((cp2 = (char *)strchr(cp, '=')) != NULL)
+	        cp = cp2 + 1;
+	    cp = LYSkipBlanks(cp);
+	    if (atoi(cp) != 0)
+	        partial_threshold = atoi(cp);
+#endif /* DISP_PARTIAL */
+
 	/*
 	 *  Local execution mode - only links in local files.
 	 */
@@ -836,6 +850,19 @@ PUBLIC int save_rc NOPARAMS
 	       ((keypad_mode == LINKS_ARE_NUMBERED) ? "LINKS_ARE_NUMBERED" :
 				      "LINKS_AND_FORM_FIELDS_ARE_NUMBERED")));
 
+#ifdef DISP_PARTIAL
+    /*
+     * Partial display threshold
+     */
+    fprintf(fp, "\
+# partial_thres specifies the number of lines Lynx should download and render
+# before we redraw the screen in Partial Display logic
+# e.g. partial_thres=2
+# would have Lynx redraw every 2 lines that it renders
+# partial_thres=-1 would use the entire screensize\n");
+    fprintf(fp, "partial_thres=%d\n\n", partial_threshold);
+#endif /* DISP_PARTIAL */
+
     /*
      *  Lineedit mode.
      */