[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: LYNX-DEV Partial Display
From: |
Sinan Kaan Yerli |
Subject: |
Re: LYNX-DEV Partial Display |
Date: |
Mon, 30 Mar 1998 13:40:00 +0100 (BST) |
On Mon, 30 Mar 1998, Sinan Kaan Yerli wrote:
>* patch aganist http://www.slcc.edu/lynx/current/lynx2.8.1dev.5.tar.gz
Oppps... sorry, used an oldier 2.8pre version in the previous patch. Now
this one is aganist the last version.
--
Sinan Kaan Yerli <address@hidden>
=====BEGIN OF PATCH
*** lynx2-8/configure Wed Mar 25 13:58:54 1998
--- lynx2-8.new/configure Mon Mar 30 12:55:26 1998
***************
*** 7848,7854 ****
trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
! DEFS=-DHAVE_CONFIG_H
# Without the "./", some shells look in PATH for config.status.
: ${CONFIG_STATUS=./config.status}
--- 7848,7854 ----
trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
! DEFS='-DHAVE_CONFIG_H -DDISP_PARTIAL'
# Without the "./", some shells look in PATH for config.status.
: ${CONFIG_STATUS=./config.status}
*** lynx2-8/WWW/Library/Implementation/HTFormat.c Wed Mar 25 13:58:54 1998
--- lynx2-8.new/WWW/Library/Implementation/HTFormat.c Mon Mar 30 12:57:57 1998
***************
*** 600,605 ****
--- 600,609 ----
(*targetClass.put_block)(sink, input_buffer, status);
+ #ifdef DISP_PARTIAL
+ HText_pageDisplay(Newline,"");
+ #endif /* DISP_PARTIAL */
+
bytes += status;
if (anchor && anchor->content_length > 0)
sprintf(line, "Read %d of %d bytes of data.",
***************
*** 662,667 ****
--- 666,675 ----
}
(*targetClass.put_block)(sink, input_buffer, status);
+ #ifdef DISP_PARTIAL
+ HText_pageDisplay(Newline,"");
+ #endif /* DISP_PARTIAL */
+
bytes += status;
if (nreads >= 100) {
/*
***************
*** 753,758 ****
--- 761,770 ----
}
(*targetClass.put_block)(sink, input_buffer, status);
+ #ifdef DISP_PARTIAL
+ HText_pageDisplay(Newline,"");
+ #endif /* DISP_PARTIAL */
+
bytes += status;
if (nreads >= 100) {
/*
*** lynx2-8/WWW/Library/Implementation/HTTP.c Wed Mar 25 13:58:54 1998
--- lynx2-8.new/WWW/Library/Implementation/HTTP.c Mon Mar 30 13:16:01 1998
***************
*** 724,729 ****
--- 724,733 ----
goto clean_up;
}
}
+ #ifdef DISP_PARTIAL
+ else
+ HText_pageDisplay(Newline,"");
+ #endif /* DISP_PARTIAL */
bytes_already_read += status;
sprintf (line, "Read %d bytes of data.", bytes_already_read);
*** lynx2-8/src/LYGlobalDefs.h Wed Mar 25 13:58:54 1998
--- lynx2-8.new/src/LYGlobalDefs.h Mon Mar 30 12:59:55 1998
***************
*** 123,128 ****
--- 123,129 ----
extern char *jumpprompt; /* The default jump statusline prompt */
extern int more; /* is there more document to display? */
extern int display_lines; /* number of lines in the display */
+ extern int Newline; /* the last line position on the file */
extern int www_search_result;
extern char *checked_box; /* form boxes */
extern char *unchecked_box; /* form boxes */
*** lynx2-8/src/LYMainLoop.c Wed Mar 25 13:58:54 1998
--- lynx2-8.new/src/LYMainLoop.c Mon Mar 30 13:01:52 1998
***************
*** 90,95 ****
--- 90,97 ----
PUBLIC char * LYRequestTitle = NULL; /* newdoc.title in calls to getfile() */
+ PUBLIC int Newline = 0; /* HText_pageDisplay() requires it */
+
PRIVATE document newdoc;
PRIVATE document curdoc;
PRIVATE char *traversal_host = NULL;
***************
*** 145,151 ****
int getresult;
int arrowup = FALSE, show_help = FALSE;
int lines_in_file = -1;
- int Newline = 0;
char prev_target[512];
char user_input_buffer[1024];
char *owner_address = NULL; /* Holds the responsible owner's address
*/
--- 147,152 ----
*** lynx2-8/src/LYUtils.c Wed Mar 25 13:58:54 1998
--- lynx2-8.new/src/LYUtils.c Mon Mar 30 13:07:21 1998
***************
*** 16,21 ****
--- 16,24 ----
#ifdef DOSPATH
#include <HTDOS.h>
#endif
+ #ifdef DISP_PARTIAL
+ #include <LYKeymap.h>
+ #endif /* DISP_PARTIAL */
#ifdef VMS
#include <descrip.h>
#include <libclidef.h>
***************
*** 2117,2122 ****
--- 2120,2162 ----
#endif /* DOSPATH */
if (TOUPPER(c) == 'Z' || c == 7 || c == 3)
return((int)TRUE);
+ #ifdef DISP_PARTIAL
+ else
+ {
+ switch (keymap[c+1])
+ {
+ case LYK_PREV_PAGE :
+ if (Newline > 1)
+ Newline -= display_lines ;
+ break ;
+ case LYK_NEXT_PAGE :
+ if (HText_canScrollDown())
+ Newline += display_lines ;
+ break ;
+ case LYK_UP_TWO :
+ if (Newline > 1)
+ Newline -= 2 ;
+ break ;
+ case LYK_DOWN_TWO :
+ if (HText_canScrollDown())
+ Newline += 2 ;
+ break ;
+ case LYK_HOME:
+ if (Newline > 1)
+ Newline = 1;
+ break;
+ case LYK_END:
+ if (HText_canScrollDown())
+ Newline = MAXINT;
+ break;
+ case LYK_REFRESH :
+ break ;
+ default :
+ return ((int)FALSE) ;
+ }
+ HText_pageDisplay(Newline, "");
+ }
+ #endif /* DISP_PARTIAL */
/** Other keystrokes **/
return((int)FALSE);
=====END OF PATCH
Re: LYNX-DEV CHANGES 2.8.1dev.5, T.E.Dickey, 1998/03/30
Re: LYNX-DEV CHANGES 2.8.1dev.5, T.E.Dickey, 1998/03/30
Re: LYNX-DEV CHANGES 2.8.1dev.5, T.E.Dickey, 1998/03/30
Re: LYNX-DEV CHANGES 2.8.1dev.5, T.E.Dickey, 1998/03/30
Re: LYNX-DEV CHANGES 2.8.1dev.5, David Combs, 1998/03/30