NeoMutt  2022-04-29-215-gc12b98
Teaching an old dog new tricks
DOXYGEN
mutt_curses.h
Go to the documentation of this file.
1
24#ifndef MUTT_GUI_MUTT_CURSES_H
25#define MUTT_GUI_MUTT_CURSES_H
26
27#include "config.h"
28#include "color/lib.h"
29
30#ifdef HAVE_NCURSESW_NCURSES_H
31#include <ncursesw/ncurses.h> // IWYU pragma: keep
32#elif defined(HAVE_NCURSES_NCURSES_H)
33#include <ncurses/ncurses.h>
34#elif defined(HAVE_NCURSES_H)
35#include <ncurses.h>
36#else
37#include <curses.h>
38#endif
39
40#define ctrl(ch) ((ch) - '@')
41
42#ifdef KEY_ENTER
43#define CI_is_return(ch) (((ch) == '\r') || ((ch) == '\n') || ((ch) == KEY_ENTER))
44#else
45#define CI_is_return(ch) (((ch) == '\r') || ((ch) == '\n'))
46#endif
47
52{
56};
57
58void mutt_curses_set_color(struct AttrColor *ac);
62void mutt_resize_screen(void);
63
64#endif /* MUTT_GUI_MUTT_CURSES_H */
Color and attribute parsing.
ColorId
List of all colored objects.
Definition: color.h:35
void mutt_resize_screen(void)
Update NeoMutt's opinion about the window size (CURSES)
Definition: resize.c:73
enum MuttCursorState mutt_curses_set_cursor(enum MuttCursorState state)
Set the cursor state.
Definition: mutt_curses.c:96
void mutt_curses_set_color(struct AttrColor *ac)
Set the colour and attributes for text.
Definition: mutt_curses.c:40
MuttCursorState
Cursor states for mutt_curses_set_cursor()
Definition: mutt_curses.h:52
@ MUTT_CURSOR_INVISIBLE
Hide the cursor.
Definition: mutt_curses.h:53
@ MUTT_CURSOR_VISIBLE
Display a normal cursor.
Definition: mutt_curses.h:54
@ MUTT_CURSOR_VERY_VISIBLE
Display a very visible cursor.
Definition: mutt_curses.h:55
struct AttrColor * mutt_curses_set_normal_backed_color_by_id(enum ColorId cid)
Set the colour and attributes by the colour id.
Definition: mutt_curses.c:65
struct AttrColor * mutt_curses_set_color_by_id(enum ColorId cid)
Set the colour and attributes by the colour id.
Definition: mutt_curses.c:81
A curses colour and its attributes.
Definition: attr.h:35