#define NCURSES_CONST const /* define before including term.h */
#endif
#include <term.h>
-
+
#ifdef HAVE_NCURSES_H
#include <ncurses.h>
-#elif defined(HAVE_NCURSES_NCURSES_H)
+#elif defined(HAVE_NCURSES_NCURSES_H)
#include <ncurses/ncurses.h>
#endif
#ifdef HAVE_LINUX_TIOCL_H
#include <linux/tiocl.h>
#endif
+
+#include "c.h"
#include "nls.h"
#if __GNU_LIBRARY__ < 5
/* Constants. */
-/* General constants. */
-#ifndef TRUE
-#define TRUE 1
-#define FALSE 0
-#endif
-
/* Keyboard types. */
#define PC 0
#define OLIVETTI 1
*opt_color = DEFAULT;
else if (isdigit(argv[0][0]))
*opt_color = atoi(argv[0]);
- else
+ else
*bad_arg = TRUE;
-
+
if(*opt_color < 0 || *opt_color > 9 || *opt_color == 8)
*bad_arg = TRUE;
}
*opt_color |= WHITE;
else if (isdigit(argv[argc-1][0]))
*opt_color = atoi(argv[argc-1]);
- else
+ else
*bad_arg = TRUE;
if(*opt_color < 0 || *opt_color > 15)
*bad_arg = TRUE;
if (opt_blength && vcterm) {
printf("\033[11;%d]", opt_blength_l);
}
-
+
/* -bfreq freqnumber */
if (opt_bfreq && vcterm) {
printf("\033[10;%d]", opt_bfreq_f);
setlocale(LC_ALL, "");
bindtextdomain(PACKAGE, LOCALEDIR);
textdomain(PACKAGE);
-
+
if (argc < 2)
bad_arg = TRUE;