23#ifndef MUTT_GUI_MUTT_CURSES_H
24#define MUTT_GUI_MUTT_CURSES_H
29#ifdef HAVE_NCURSESW_NCURSES_H
30#include <ncursesw/ncurses.h>
31#elif defined(HAVE_NCURSES_NCURSES_H)
32#include <ncurses/ncurses.h>
33#elif defined(HAVE_NCURSES_H)
39#if (((NCURSES_VERSION_MAJOR > 6) || \
40 ((NCURSES_VERSION_MAJOR == 6) && (NCURSES_VERSION_MINOR >= 1))) && \
41 defined(NCURSES_EXT_COLORS))
42#define NEOMUTT_DIRECT_COLORS
47#define A_ITALIC_DEFINED
52#define ctrl(ch) ((ch) - '@')
55#define key_is_return(ch) (((ch) == '\r') || ((ch) == '\n') || ((ch) == KEY_ENTER))
57#define key_is_return(ch) (((ch) == '\r') || ((ch) == '\n'))
Color and attribute parsing.
ColorId
List of all colored objects.
void mutt_resize_screen(void)
Update NeoMutt's opinion about the window size.
const struct AttrColor * mutt_curses_set_normal_backed_color_by_id(enum ColorId cid)
Set the colour and attributes by the colour id.
enum MuttCursorState mutt_curses_set_cursor(enum MuttCursorState state)
Set the cursor state.
const struct AttrColor * mutt_curses_set_color_by_id(enum ColorId cid)
Set the colour and attributes by the colour id.
MuttCursorState
Cursor states for mutt_curses_set_cursor()
@ MUTT_CURSOR_INVISIBLE
Hide the cursor.
@ MUTT_CURSOR_VISIBLE
Display a normal cursor.
@ MUTT_CURSOR_VERY_VISIBLE
Display a very visible cursor.
void mutt_curses_set_color(const struct AttrColor *ac)
Set the colour and attributes for text.
A curses colour and its attributes.