]> granicus.if.org Git - nethack/commitdiff
Revert "some fixes provided from Hardfought"
authornhmall <nhmall@nethack.org>
Tue, 4 Dec 2018 16:59:41 +0000 (11:59 -0500)
committernhmall <nhmall@nethack.org>
Tue, 4 Dec 2018 16:59:41 +0000 (11:59 -0500)
This reverts commit ab9e28d1aaa7a009e5051dcbee6bbbccf62804e5.

include/flag.h
include/wincurs.h
src/files.c
src/options.c
sys/unix/Makefile.src

index e3d0a5143890b7c1d6fd47d06f3dbb316651b48b..0623ec52635de0cd701d1e666e4e86c4143c0257 100644 (file)
@@ -322,13 +322,12 @@ struct instance_flags {
 #endif
 #endif
     uchar bouldersym; /* symbol for boulder display */
-#if defined(TTY_GRAPHICS) || defined(CURSES_GRAPHICS)
+#ifdef TTY_GRAPHICS
     char prevmsg_window; /* type of old message window to use */
 #endif
 #if defined(TTY_GRAPHICS) || defined(CURSES_GRAPHICS)
     boolean extmenu;     /* extended commands use menu interface */
 #endif
-
 #ifdef MFLOPPY
     boolean checkspace; /* check disk space before writing files */
                         /* (in iflags to allow restore after moving
index be79256b7f081cedf025d5bb76e74487c4126dfd..55e7f1d22687c80e7a7e6ab556131ace18d0bd43 100644 (file)
@@ -259,6 +259,9 @@ extern void curses_del_menu(winid wid);
 
 extern void curses_status_init(void);
 extern void curses_status_update(int, genericptr_t, int, int, int, unsigned long *);
+/* extern attr_t curses_color_attr(int nh_color, int bg_color); */
+/* extern void curses_update_stats(void); */
+/* extern void curses_decrement_highlight(void); */
 
 /* cursinvt.c */
 
index 2fd0f89c1e085e9f1d937a0d7d31f3f6dce5061b..3dd13774359bee91aa48db327e6245460b54d821 100644 (file)
@@ -3185,14 +3185,7 @@ int which_set;
         if (symset[which_set].name
             && (fuzzymatch(symset[which_set].name, "Default symbols",
                            " -_", TRUE)
-                || !strcmpi(symset[which_set].name, "default")
-#ifdef CURSES_GRAPHICS
-                /* we don't maintain static symbols for curses
-                 * the system defines these at runtime
-                 */
-                || !strcmpi(symset[which_set].name, "curses")
-#endif
-                ))
+                || !strcmpi(symset[which_set].name, "default")))
             clear_symsetentry(which_set, TRUE);
         config_error_done();
         return (symset[which_set].name == 0) ? 1 : 0;
index 51f0d6d8f7ccf15b5e0ceab4eaaed17034ed83ad..8be8cfcd3889be1bb88162b63af930f1e734a30a 100644 (file)
@@ -106,7 +106,7 @@ static struct Bool_Opt {
 #endif
     { "clicklook", &iflags.clicklook, FALSE, SET_IN_GAME },
     { "cmdassist", &iflags.cmdassist, TRUE, SET_IN_GAME },
-#if defined(MICRO) || defined(WIN32) || defined(CURSES_GRAPHICS)
+#if defined(MICRO) || defined(WIN32)
     { "color", &iflags.wc_color, TRUE, SET_IN_GAME }, /*WC*/
 #else /* systems that support multiple terminals, many monochrome */
     { "color", &iflags.wc_color, FALSE, SET_IN_GAME }, /*WC*/
@@ -3626,71 +3626,6 @@ boolean tinitial, tfrom_file;
     }
 #endif
 
-    /* WINCAP2
-     * term_cols:amount */
-    fullname = "term_cols";
-    if (match_optname(opts, fullname, sizeof("term_cols")-1, TRUE)) {
-        op = string_for_opt(opts, negated);
-        iflags.wc2_term_cols = atoi(op);
-        if (negated) bad_negation(fullname, FALSE);
-        return retval;
-    }
-
-    /* WINCAP2
-     * term_rows:amount */
-    fullname = "term_rows";
-    if (match_optname(opts, fullname, sizeof("term_rows")-1, TRUE)) {
-        op = string_for_opt(opts, negated);
-        iflags.wc2_term_rows = atoi(op);
-        if (negated) bad_negation(fullname, FALSE);
-        return retval;
-    }
-
-    /* WINCAP2
-     * petattr:string */
-    fullname = "petattr";
-    if (match_optname(opts, fullname, sizeof("petattr")-1, TRUE)) {
-        op = string_for_opt(opts, negated);
-        if (op && !negated) {
-#ifdef CURSES_GRAPHICS
-            iflags.wc2_petattr = curses_read_attrs(op);
-            if (!curses_read_attrs(op))
-                config_error_add("Unknown %s parameter '%s'", fullname, opts);
-                return FALSE;
-#else
-            /* non-curses windowports will not use this flag anyway
-             * but the above will not compile if we don't have curses.
-             * Just set it to a sensible default: */
-            iflags.wc2_petattr = ATR_INVERSE
-#endif
-        } else if (negated) bad_negation(fullname, TRUE);
-        return retval;
-    }
-
-    /* WINCAP2
-     * windowborders:n */
-    fullname = "windowborders";
-    if (match_optname(opts, fullname, sizeof("windowborders")-1, TRUE)) {
-        op = string_for_opt(opts, negated);
-        if (negated && op) bad_negation(fullname, TRUE);
-        else {
-            if (negated)
-                iflags.wc2_windowborders = 2; /* Off */
-            else if (!op)
-                iflags.wc2_windowborders = 1; /* On */
-            else    /* Value supplied */
-                iflags.wc2_windowborders = atoi(op);
-            if ((iflags.wc2_windowborders > 3) ||
-                (iflags.wc2_windowborders < 1)) {
-                iflags.wc2_windowborders = 0;
-                config_error_add("Unknown %s parameter '%s'", fullname, opts);
-                return FALSE;
-
-            }
-        }
-        return retval;
-    }
-
     /* menustyle:traditional or combination or full or partial */
     fullname = "menustyle";
     if (match_optname(opts, fullname, 4, TRUE)) {
index 38523fd361d2be610eacbb5ccef5366c17cb974c..07d5d592038cb89e67f1517d3392670960e2ef67 100644 (file)
@@ -198,14 +198,6 @@ REGEXOBJ = posixregex.o
 WINTTYSRC = ../win/tty/getline.c ../win/tty/termcap.c ../win/tty/topl.c \
        ../win/tty/wintty.c
 WINTTYOBJ = getline.o termcap.o topl.o wintty.o
-# Files for curses interface
-WINCURSESSRC = ../win/curses/cursmain.c ../win/curses/curswins.c \
-       ../win/curses/cursmisc.c ../win/curses/cursdial.c \
-       ../win/curses/cursstat.c ../win/curses/cursinit.c \
-       ../win/curses/cursmesg.c ../win/curses/cursinvt.c
-WINCURSESOBJ = cursmain.o curswins.o cursmisc.o cursdial.o cursstat.o \
-       cursinit.o cursmesg.o cursinvt.o
-
 #
 # Files for curses interface
 WINCURSESSRC = ../win/curses/cursmain.c ../win/curses/curswins.c \