24#ifndef MUTT_GUI_MUTT_CURSES_H
25#define MUTT_GUI_MUTT_CURSES_H
30#ifdef HAVE_NCURSESW_NCURSES_H
31#include <ncursesw/ncurses.h>
32#elif defined(HAVE_NCURSES_NCURSES_H)
33#include <ncurses/ncurses.h>
34#elif defined(HAVE_NCURSES_H)
40#if (((NCURSES_VERSION_MAJOR > 6) || \
41 ((NCURSES_VERSION_MAJOR == 6) && (NCURSES_VERSION_MINOR >= 1))) && \
42 defined(NCURSES_EXT_COLORS))
43#define NEOMUTT_DIRECT_COLORS
46#define ctrl(ch) ((ch) - '@')
49#define key_is_return(ch) (((ch) == '\r') || ((ch) == '\n') || ((ch) == KEY_ENTER))
51#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.