From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10d4db,cdda850df4a63402,start X-Google-Attributes: gid10d4db,public X-Google-Thread: f611e,cdda850df4a63402,start X-Google-Attributes: gidf611e,public X-Google-ArrivalTime: 1993-11-20 09:18:23 PST Xref: gmd.de comp.infosystems.www:3489 comp.os.linux.announce:1472 Path: gmd.de!xlink.net!howland.reston.ans.net!pipex!sunic!news.funet.fi!klaava!klaava!not-for-mail From: fritchie@stolaf.edu (Scott Fritchie; ACC @ St. Olaf College) Newsgroups: comp.infosystems.www,comp.os.linux.announce Subject: Lynx FANCY_CURSES patch for Linux Followup-To: comp.os.linux.misc Date: 20 Nov 1993 19:17:14 +0200 Organization: St. Olaf College; Northfield, MN Sender: wirzeniu@klaava.Helsinki.FI Message-ID: <2cljeq$738@klaava.Helsinki.FI> NNTP-Posting-Host: klaava.helsinki.fi Keywords: lynx, www, curses, patch Lynx without the FANCY_CURSES just isn't the same.... Lynx is the World Wide Web hypertext browser developed by Lou Montulli at the University of Kansas. His email address, for those interested, is montulli@ukanaix.cc.ukans.edu. Lynx is available via anonymous FTP at ftp2.cc.ukans.edu in /pub/lynx. For those Linux users using Lynx already, the FANCY_CURSES option makes hypertext links appear as in bold (or underlined, if your preferences are like mine). That alone is worthwhile enough for me. WARNING: The patch below is a *big* hack. It is not something I'm terribly proud of (I had insomnia late last night and was only interested in getting everything compiled & linked), and would never do this for production code. However, it does get the job done. Prerequisites: 1. The new release of ncurses1.8.1. (I think I got it at sunsite.unc.edu:/pub/Linux/something...) For compilation of Lynx, I placed the following in /tmp: curses.h terminfo.h libncurses.a If you'd like to put them in some other place, edit the patch to "Makefile" before applying it. 2. Lynx release 2-0-12. 3. The patch below. - If you don't want to swap the bold and underline functions, remove the first hunk for src/defs.h. 4. Edit "userdefs.h" before compiling Lynx! -Scott --- Scott Fritchie, UNIX Systems Manager Academic Computing Center, St. Olaf College 1510 St. Olaf Ave., Northfield, MN 55057 fritchie@stolaf.edu ... 507/646.3407 --- snip --- snip --- snip --- snip --- snip --- snip --- snip --- diff --context --recursive lynx2-0-12/Makefile lynx2-0-12.modified/Makefile *** lynx2-0-12/Makefile Fri Nov 5 14:06:54 1993 --- lynx2-0-12.modified/Makefile Fri Nov 19 01:28:10 1993 *************** *** 146,156 **** linux: cd WWW/Library/unix; make ! cd src/WWW; make lib CC="gcc" MCFLAGS="-g -I../../$(WWWINC)" cd src/WWW; make ranlib ! cd src/gopher; make all CC="gcc" MCFLAGS="-g -DUNIX -I../../$(WWWINC)" cd src/gopher; make ranlib ! cd src; make all CC="gcc" MCFLAGS="-g -DUNIX -DREXEC -I../$(WWWINC)" LIBS="-lcurses -ltermcap ../WWW/Library/unix/libwww.a " aix32: cd WWW/Library/rs6000; make --- 147,157 ---- linux: cd WWW/Library/unix; make ! cd src/WWW; make lib CC="gcc" MCFLAGS="-g -DFANCY_CURSES -I/tmp -I../../$(WWWINC)" cd src/WWW; make ranlib ! cd src/gopher; make all CC="gcc" MCFLAGS="-g -DUNIX -I/tmp -I../../$(WWWINC)" cd src/gopher; make ranlib ! cd src; make all CC="gcc" MCFLAGS="-g -DFANCY_CURSES -DUNIX -DREXEC -I/tmp -I../$(WWWINC)" LIBS="/tmp/libncurses.a -ltermcap ../WWW/Library/unix/libwww.a " aix32: cd WWW/Library/rs6000; make diff --context --recursive lynx2-0-12/src/WWW/GridText.c lynx2-0-12.modified/src/WWW/GridText.c *** lynx2-0-12/src/WWW/GridText.c Wed Nov 3 17:41:42 1993 --- lynx2-0-12.modified/src/WWW/GridText.c Fri Nov 19 01:11:51 1993 *************** *** 15,20 **** --- 15,27 ---- #include "HTAccess.h" #include "HTBrowse.h" + #ifdef lines + #undef lines + #endif /* lines */ + #ifdef tab + #undef tab + #endif /* tab */ + struct _HTStream { /* only know it as object */ CONST HTStreamClass * isa; /* ... */ diff --context --recursive lynx2-0-12/src/curses.c lynx2-0-12.modified/src/curses.c *** lynx2-0-12/src/curses.c Mon Oct 11 12:58:31 1993 --- lynx2-0-12.modified/src/curses.c Fri Nov 19 00:22:24 1993 *************** *** 136,142 **** --- 136,144 ---- /* get terminal type (strip 'dec-' from vms style types) */ if (strncmp(ttytype, "dec-vt", 6) == 0) { strcpy(term, ttytype+4); + #ifdef XXX (void) setterm(term); + #endif /* Impossible XXX */ } #else start_curses(); diff --context --recursive lynx2-0-12/src/defs.h lynx2-0-12.modified/src/defs.h *** lynx2-0-12/src/defs.h Fri Oct 22 13:04:05 1993 --- lynx2-0-12.modified/src/defs.h Fri Nov 19 01:19:29 1993 *************** *** 124,129 **** --- 124,130 ---- #define stop_underline() clrattr(_UNDERLINE) #define stop_reverse() clrattr(_REVERSE) #else + #ifdef IMPOSSIBLE_XXX #define start_bold() attrset(A_BOLD) #define start_underline() attrset(A_UNDERLINE) #define start_reverse() attrset(A_REVERSE) *************** *** 130,135 **** --- 131,144 ---- #define stop_bold() attroff(A_BOLD) #define stop_underline() attroff(A_UNDERLINE) #define stop_reverse() attroff(A_REVERSE) + #else /* IMPOSSIBLE_XXX */ + #define start_bold() attrset(A_UNDERLINE) + #define start_underline() attrset(A_BOLD) + #define start_reverse() attrset(A_REVERSE) + #define stop_bold() attroff(A_UNDERLINE) + #define stop_underline() attroff(A_BOLD) + #define stop_reverse() attroff(A_REVERSE) + #endif /* IMPOSSIBLE_XXX */ #endif /* VMS */ #else /* not FANCY_CURSES */ *************** *** 354,356 **** --- 363,367 ---- extern char *do_gopher PARAMS((char *newfile, char *hightext, char *search_string, FILE *current_fp)); extern void async_interupt PARAMS((int sig)); + + #include diff --context --recursive lynx2-0-12/src/do_link.c lynx2-0-12.modified/src/do_link.c *** lynx2-0-12/src/do_link.c Thu Oct 21 15:55:56 1993 --- lynx2-0-12.modified/src/do_link.c Fri Nov 19 00:20:43 1993 *************** *** 1,4 **** --- 1,7 ---- #include "defs.h" + #ifdef newline /* XXX */ + #undef newline + #endif PUBLIC void do_link ARGS12(FILE **,fp, char *,newfile, char *,oldfile, char *,prev_link_name, char *,target, char *,gopher_info, diff --context --recursive lynx2-0-12/src/gopher/make_dir_links.c lynx2-0-12.modified/src/gopher/make_dir_links.c *** lynx2-0-12/src/gopher/make_dir_links.c Mon Nov 1 12:59:16 1993 --- lynx2-0-12.modified/src/gopher/make_dir_links.c Fri Nov 19 01:14:22 1993 *************** *** 1,5 **** --- 1,9 ---- #include "gopher.h" + #ifdef tab + #undef tab + #endif /* tab */ + PUBLIC char *make_dir_links ARGS3(char *,lineptr, char,type, char *,search_string) { /* format from gopher server looks like diff --context --recursive lynx2-0-12/src/mainloop.c lynx2-0-12.modified/src/mainloop.c *** lynx2-0-12/src/mainloop.c Fri Nov 5 13:32:13 1993 --- lynx2-0-12.modified/src/mainloop.c Fri Nov 19 00:18:49 1993 *************** *** 2,7 **** --- 2,10 ---- #include "HTAccess.h" #include "WWW/GridText.h" + #ifdef newline /* XXX */ + #undef newline + #endif /* * here's where we do all the work diff --context --recursive lynx2-0-12/src/textsearch.c lynx2-0-12.modified/src/textsearch.c *** lynx2-0-12/src/textsearch.c Fri Oct 22 13:10:53 1993 --- lynx2-0-12.modified/src/textsearch.c Fri Nov 19 00:20:15 1993 *************** *** 1,4 **** --- 1,7 ---- #include "defs.h" + #ifdef newline /* XXX */ + #undef newline + #endif /* * Textsearch checks the prev_target variable to see if it is empty. * If it is then it requests a new search string. It then searches -- Mail submissions for comp.os.linux.announce to: linux-announce@tc.cornell.edu PLEASE remember Keywords: and a short description of the software.