NeoMutt  2024-10-02-37-gfa9146
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
32struct AttrColorList;
33struct MuttWindow;
34struct QuoteStyle;
35
40{
41 const struct AttrColor *attr_color;
42 int first;
43 int last;
44};
45ARRAY_HEAD(TextSyntaxArray, struct TextSyntax);
46
50struct Line
51{
52 LOFF_T offset;
53 short cid;
54 bool cont_line : 1;
55 bool cont_header : 1;
56
59
62
63 struct QuoteStyle *quote;
64};
65
66int display_line(FILE *fp, LOFF_T *bytes_read, struct Line **lines,
67 int line_num, int *lines_used, int *lines_max, PagerFlags flags,
68 struct QuoteStyle **quote_list, int *q_level, bool *force_redraw,
69 regex_t *search_re, struct MuttWindow *win_pager, struct AttrColorList *ansi_list);
70
71#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
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:1042
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:51
short search_arr_size
Number of items in search array.
Definition: display.h:60
struct TextSyntax * search
Array of search text in the line.
Definition: display.h:61
bool cont_line
Continuation of a previous line (wrapped by NeoMutt)
Definition: display.h:54
short cid
Default line colour, e.g. MT_COLOR_QUOTED.
Definition: display.h:53
struct QuoteStyle * quote
Quoting style for this line (pointer into PagerPrivateData->quote_list)
Definition: display.h:63
LOFF_T offset
Offset into Email file (PagerPrivateData->fp)
Definition: display.h:52
bool cont_header
Continuation of a header line (wrapped by MTA)
Definition: display.h:55
short syntax_arr_size
Number of items in syntax array.
Definition: display.h:57
struct TextSyntax * syntax
Array of coloured text in the line.
Definition: display.h:58
Style of quoted text.
Definition: quoted.h:67
Highlighting for a piece of text.
Definition: display.h:40
const struct AttrColor * attr_color
Curses colour of text.
Definition: display.h:41
int last
Last character in line to be coloured (not included)
Definition: display.h:43
int first
First character in line to be coloured.
Definition: display.h:42