]> thyrsus.com Git - vh.git/commitdiff
Version 1.8. Works under Linux again.
authorEric S. Raymond <esr@thyrsus.com>
Sat, 6 May 1995 07:33:29 +0000 (07:33 +0000)
committerEric S. Raymond <esr@thyrsus.com>
Sat, 6 May 1995 07:33:29 +0000 (07:33 +0000)
Makefile
READ.ME
browse.c
screen.h

index 53ee4bd146ed5dba0666cfe7d2493262018ca1f8..4e1ecfed565e026aff77ccc02966bc52cc4c6e85 100644 (file)
--- a/Makefile
+++ b/Makefile
 # If you're using Borland Turbo-C under MS-DOS, see TurboMake
 #
 
-# Try these for any system using ncurses
-SYSTYPE = -DUNIX -DNCURSES
-INCDIR = -I/usr/local/include
-CFLAGS  = -O $(SYSTYPE) $(INCDIR)
-LIBS = -L/usr/local/lib -lncurses
-LDFLAGS = -s $(LIBS)
+# Flags for Linux. You *must* use the ncurses package for this, it 
+# won't work with the curses that comes with the gcc libs.
+SYSTYPE=-DUNIX -DNCURSES
+#CFLAGS  = -O6 -fomit-frame-pointer $(SYSTYPE)
+CFLAGS = -g  $(SYSTYPE)
+LDFLAGS = # -s
+LIBS = -lncurses
 
 # Flags for System V Release 4 using native curses
 # SYSTYPE=-DUNIX -DCURSES -DATT #-DSCROLLBAR -DATTMOUSE -DPOPUP
@@ -34,13 +35,6 @@ LDFLAGS = -s $(LIBS)
 # LDFLAGS = -s
 # LIBS = -lcurses
 
-# Try these for Linux. You *must* use the ncurses package for this, it 
-# won't work with the curses that comes with the gcc libs.
-# SYSTYPE=-DUNIX -DNCURSES -DBSD
-# CFLAGS  = -O6 -fomit-frame-pointer $(SYSTYPE)
-# LDFLAGS = -s
-# LIBS = -lncurses
-
 # Try these for SunOS 4.1
 # SYSTYPE=-DUNIX -DCURSES -DATT -DSCROLLBAR  
 # CC=/usr/5bin/cc
diff --git a/READ.ME b/READ.ME
index 311895857b8bcefb36de20a16ef0bfda211de1b6..15f44c157d9707ed2fda7492944b7b245dc0e09a 100644 (file)
--- a/READ.ME
+++ b/READ.ME
@@ -1,11 +1,11 @@
-                       VH, version 1.7
+                       VH, version 1.8
 
 NOTE FROM ESR: VH is still being maintained, but I suggest that you use
 HTML markup and lynx instead.  For most purposes, VH is now obsolete; I
 will probably cease actively maintaining it soon.  See my freeware collection
 page, accessible from
 
-       http://www.thyrsus.com/~esr/home.html
+       http://www.ccil.org/~esr/home.html
 
 for the latest update on its status.
 
@@ -182,6 +182,8 @@ get_dialogue() and message() functions; see browse.c for models.
 Release 1.4 adds a new -f option for extracting lists of entries.
 Release 1.5 makes cursor positioning a bit more intuitive.
 Release 1.6 fixes some minor bugs and moves the main port to ncurses.
+Release 1.7 added the HTML obsolescence comment.
+Release 1.8 was updated for curses 1.9.1b, which uses curses.h, not ncurses.h.
 
 Have fun!
                        Eric Raymond = eric@snark.thyrsus.com (UNIX)
index 71d546212bea4ad2aad0215273ee1b0f5d61d645..ca05c2dbbf70f10f133459b4ff9835f9b48ebf9f 100644 (file)
--- a/browse.c
+++ b/browse.c
@@ -1326,6 +1326,16 @@ char     **argv;
     bool       forcemono = FALSE, atrandom = FALSE;
 
     execname = argv[0];
+
+#ifdef UNIX
+    /* 
+     * Weird!  It seems bash under linux passes in a full pathname, even if
+     * argv[0] was relative!  Foil this.
+     */
+    if ((dbname = strrchr(execname, '/')) != (char *)NULL)
+       execname = dbname + 1;
+#endif /* UNIX */
+
     while ((++argv, --argc) && *argv[0] == '-')
        for (i = 1; argv[0][i]; i++)
            switch(argv[0][i])
index 158a3cad5a8d8d393a6e85802c0bbcbe7611028a..738e2ed7e4fcdc367c80eb0c29f2146d721208b6 100644 (file)
--- a/screen.h
+++ b/screen.h
 #define OLDCURSES
 #endif /* defined(BSD) && !defined(NCURSES) */
 
-#ifdef NCURSES
-#include <ncurses.h>
-#else
+#if defined(CURSES) || defined(NCURSES)
 #include <curses.h>
-#endif
-
-#ifdef CURSES
 #else
 typedef        char bool;
 #define FALSE  0