summaryrefslogtreecommitdiffstats
path: root/misc-utils/setterm.c
diff options
context:
space:
mode:
Diffstat (limited to 'misc-utils/setterm.c')
-rw-r--r--misc-utils/setterm.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/misc-utils/setterm.c b/misc-utils/setterm.c
index 49903f3b7..3b3e6c24f 100644
--- a/misc-utils/setterm.c
+++ b/misc-utils/setterm.c
@@ -95,6 +95,9 @@
#include <termios.h>
#include <string.h>
#include <fcntl.h>
+#ifndef NCURSES_CONST
+#define NCURSES_CONST const /* define before including term.h */
+#endif
#include <term.h>
#if NCH
#include <ncurses.h>
@@ -928,11 +931,12 @@ int vcterm; /* Set if terminal is a virtual console. */
/* -inversescreen [on|off]. Vc only (vt102).
*/
if (opt_inversescreen) {
- if (vcterm)
+ if (vcterm) {
if (opt_invsc_on)
printf("\033[?5h");
else
printf("\033[?5l");
+ }
}
/* -bold [on|off]. Vc behaves as expected, otherwise off turns off