]> ncurses.scripts.mit.edu Git - ncurses.git/blobdiff - ncurses/tty/lib_vidattr.c
ncurses 6.4 - patch 20240203
[ncurses.git] / ncurses / tty / lib_vidattr.c
index c752919bf66109130568b555a9cf94b142ede579..2c7a0b27bd6da2dd5563c981ff8548f6fe463952 100644 (file)
@@ -1,5 +1,5 @@
 /****************************************************************************
- * Copyright 2018-2019,2020 Thomas E. Dickey                                *
+ * Copyright 2018-2020,2023 Thomas E. Dickey                                *
  * Copyright 1998-2014,2017 Free Software Foundation, Inc.                  *
  *                                                                          *
  * Permission is hereby granted, free of charge, to any person obtaining a  *
@@ -70,7 +70,7 @@
 #define CUR SP_TERMTYPE
 #endif
 
-MODULE_ID("$Id: lib_vidattr.c,v 1.76 2020/02/02 23:34:34 tom Exp $")
+MODULE_ID("$Id: lib_vidattr.c,v 1.79 2023/04/28 20:59:26 tom Exp $")
 
 #define doPut(mode) \
        TPUTS_TRACE(#mode); \
@@ -249,6 +249,7 @@ NCURSES_SP_NAME(vidputs) (NCURSES_SP_DCLx
                    TurnOff(A_ITALIC, exit_italics_mode);
                }
 #endif
+               (void) turn_off;
            }
            PreviousAttr &= ALL_BUT_COLOR;
        }
@@ -258,16 +259,16 @@ NCURSES_SP_NAME(vidputs) (NCURSES_SP_DCLx
        if (turn_on || turn_off) {
            TPUTS_TRACE("set_attributes");
            NCURSES_SP_NAME(tputs) (NCURSES_SP_ARGx
-                                   tparm(set_attributes,
-                                         (newmode & A_STANDOUT) != 0,
-                                         (newmode & A_UNDERLINE) != 0,
-                                         (newmode & A_REVERSE) != 0,
-                                         (newmode & A_BLINK) != 0,
-                                         (newmode & A_DIM) != 0,
-                                         (newmode & A_BOLD) != 0,
-                                         (newmode & A_INVIS) != 0,
-                                         (newmode & A_PROTECT) != 0,
-                                         (newmode & A_ALTCHARSET) != 0),
+                                   TIPARM_9(set_attributes,
+                                            (newmode & A_STANDOUT) != 0,
+                                            (newmode & A_UNDERLINE) != 0,
+                                            (newmode & A_REVERSE) != 0,
+                                            (newmode & A_BLINK) != 0,
+                                            (newmode & A_DIM) != 0,
+                                            (newmode & A_BOLD) != 0,
+                                            (newmode & A_INVIS) != 0,
+                                            (newmode & A_PROTECT) != 0,
+                                            (newmode & A_ALTCHARSET) != 0),
                                    1, outc);
            PreviousAttr &= ALL_BUT_COLOR;
        }
@@ -278,6 +279,7 @@ NCURSES_SP_NAME(vidputs) (NCURSES_SP_DCLx
            } else if (turn_off & A_ITALIC) {
                TurnOff(A_ITALIC, exit_italics_mode);
            }
+           (void) turn_off;
        }
 #endif
        SetColorsIf((pair != 0) || fix_pair0, PreviousAttr);