NeoMutt  2025-01-09-81-g753ae0
Teaching an old dog new tricks
DOXYGEN
Loading...
Searching...
No Matches
display.h
Go to the documentation of this file.
1
23#ifndef MUTT_PAGER_DISPLAY_H
24#define MUTT_PAGER_DISPLAY_H
25
26#include "config.h"
27#include <stdbool.h>
28#include <stdio.h>
29#include "mutt/lib.h"
30#include "lib.h"
31#include "color/lib.h"
32
33struct MuttWindow;
34
39{
40 const struct AttrColor *attr_color;
41 int first;
42 int last;
43};
44ARRAY_HEAD(TextSyntaxArray, struct TextSyntax);
45
49struct Line
50{
51 LOFF_T offset;
52 short cid;
53 bool cont_line : 1;
54 bool cont_header : 1;
55
58
61
62 struct QuoteStyle *quote;
63};
64
65int display_line(FILE *fp, LOFF_T *bytes_read, struct Line **lines,
66 int line_num, int *lines_used, int *lines_max, PagerFlags flags,
67 struct QuoteStyle **quote_list, int *q_level, bool *force_redraw,
68 regex_t *search_re, struct MuttWindow *win_pager, struct AttrColorList *ansi_list);
69
70bool color_is_header(enum ColorId cid);
71
72#endif /* MUTT_PAGER_DISPLAY_H */
#define ARRAY_HEAD(name, type)
Define a named struct for arrays of elements of a certain type.
Definition: array.h:47
Color and attribute parsing.
ColorId
List of all coloured objects.
Definition: color.h:36
bool color_is_header(enum ColorId cid)
Colour is for an Email header.
Definition: display.c:487
int display_line(FILE *fp, LOFF_T *bytes_read, struct Line **lines, int line_num, int *lines_used, int *lines_max, PagerFlags flags, struct QuoteStyle **quote_list, int *q_level, bool *force_redraw, regex_t *search_re, struct MuttWindow *win_pager, struct AttrColorList *ansi_list)
Print a line on screen.
Definition: display.c:1052
Convenience wrapper for the library headers.
uint16_t PagerFlags
Flags for dlg_pager(), e.g. MUTT_SHOWFLAT.
Definition: lib.h:59
Key value store.
A curses colour and its attributes.
Definition: attr.h:66
A line of text in the pager.
Definition: display.h:50
short search_arr_size
Number of items in search array.
Definition: display.h:59
struct TextSyntax * search
Array of search text in the line.
Definition: display.h:60
bool cont_line
Continuation of a previous line (wrapped by NeoMutt)
Definition: display.h:53
short cid
Default line colour, e.g. MT_COLOR_SIGNATURE.
Definition: display.h:52
struct QuoteStyle * quote
Quoting style for this line (pointer into PagerPrivateData->quote_list)
Definition: display.h:62
LOFF_T offset
Offset into Email file (PagerPrivateData->fp)
Definition: display.h:51
bool cont_header
Continuation of a header line (wrapped by MTA)
Definition: display.h:54
short syntax_arr_size
Number of items in syntax array.
Definition: display.h:56
struct TextSyntax * syntax
Array of coloured text in the line.
Definition: display.h:57
Style of quoted text.
Definition: qstyle.h:56
Highlighting for a piece of text.
Definition: display.h:39
const struct AttrColor * attr_color
Curses colour of text.
Definition: display.h:40
int last
Last character in line to be coloured (not included)
Definition: display.h:42
int first
First character in line to be coloured.
Definition: display.h:41