#define _PB_NC_SCR_H
#include <linux/input.h> /* This must be included before ncurses.h */
-#include <ncurses.h>
-
-#ifdef DEBUG
-#define DBG(fmt, args...) pb_log("DBG: " fmt, ## args)
-#define DBGS(fmt, args...) \
- pb_log("DBG:%s:%d: " fmt, __func__, __LINE__, ## args)
+#if defined HAVE_NCURSESW_CURSES_H
+# include <ncursesw/curses.h>
+#elif defined HAVE_NCURSESW_H
+# include <ncursesw.h>
+#elif defined HAVE_NCURSES_CURSES_H
+# include <ncurses/curses.h>
+#elif defined HAVE_NCURSES_H
+# include <ncurses.h>
+#elif defined HAVE_CURSES_H
+# include <curses.h>
#else
-#define DBG(fmt, args...)
-#define DBGS(fmt, args...)
+# error "Curses header file not found."
#endif
+#define DBG(fmt, args...) pb_debug("DBG: " fmt, ## args)
+#define DBGS(fmt, args...) \
+ pb_debug("DBG:%s:%d: " fmt, __func__, __LINE__, ## args)
+
enum pb_nc_sig {
pb_cui_sig = 111,
enum nc_scr_pos {
nc_scr_pos_title = 0,
nc_scr_pos_title_sep = 1,
+ nc_scr_pos_lrtitle_space = 2,
nc_scr_pos_sub = 2,
nc_scr_pos_help_sep = 3,
};
struct nc_frame {
- char *title;
+ char *ltitle;
+ char *rtitle;
char *help;
char *status;
};