summaryrefslogtreecommitdiffstats
path: root/mutt_curses.h
diff options
context:
space:
mode:
authorKevin McCarthy <kevin@8t8.us>2021-12-27 12:25:24 -0800
committerKevin McCarthy <kevin@8t8.us>2021-12-27 12:25:24 -0800
commit752a1b44aa467ab4a65d4b26eabb1956070d159b (patch)
tree39d6683b70daee3ef218ac91533f36d8fcae73cd /mutt_curses.h
parent89681e9e20620a5a8fab29d9ac28b8079db7792f (diff)
parentc74cbba75016b4b7505624ea9ec6076dd97e4610 (diff)
Merge branch 'stable'
Diffstat (limited to 'mutt_curses.h')
-rw-r--r--mutt_curses.h13
1 files changed, 11 insertions, 2 deletions
diff --git a/mutt_curses.h b/mutt_curses.h
index e1d1d46f..37a79447 100644
--- a/mutt_curses.h
+++ b/mutt_curses.h
@@ -47,13 +47,18 @@
#endif /* USE_SLANG_CURSES */
-/* AIX defines ``lines'' in <term.h>, but it's used as a var name in
- * various places in Mutt
+/* Some older platforms include <term.h> when curses.h is included.
+ * ``lines'' and ``columns'' are #defined there, but are also used
+ * as a var name in various places in Mutt.
*/
#ifdef lines
#undef lines
#endif /* lines */
+#ifdef columns
+#undef columns
+#endif /* columns */
+
#define CLEARLINE(win,x) mutt_window_clearline(win, x)
#define CENTERLINE(win,x,y) mutt_window_move(win, y, (win->cols-strlen(x))/2), addstr(x)
#define BEEP() do { if (option (OPTBEEP)) beep(); } while (0)
@@ -257,4 +262,8 @@ static inline void ATTRSET (const COLOR_ATTR X)
/* reset the color to the normal terminal color as defined by 'color normal ...' */
#define NORMAL_COLOR SETCOLOR(MT_COLOR_NORMAL)
+/* curs_ti_lib.c routines: */
+const char *mutt_tigetstr (const char *capname);
+int mutt_tigetflag (const char *capname);
+
#endif /* _MUTT_CURSES_H_ */