Quoted-Email colours. More...
#include "config.h"
#include <stdbool.h>
#include <stddef.h>
#include "mutt/lib.h"
#include "core/lib.h"
#include "quoted.h"
#include "attr.h"
#include "color.h"
#include "command2.h"
#include "curses2.h"
#include "debug.h"
#include "notify2.h"
#include "simple2.h"
Go to the source code of this file.
Functions | |
void | quoted_colors_init (void) |
Initialise the Quoted colours. | |
void | quoted_colors_reset (void) |
Reset the quoted-email colours. | |
void | quoted_colors_cleanup (void) |
Cleanup the quoted-email colours. | |
struct AttrColor * | quoted_colors_get (int q) |
Return the color of a quote, cycling through the used quotes. | |
int | quoted_colors_num_used (void) |
Return the number of used quotes. | |
static int | find_highest_used (void) |
Find the highest-numbered quotedN in use. | |
bool | quoted_colors_parse_color (enum ColorId cid, struct AttrColor *ac_val, int q_level, int *rc, struct Buffer *err) |
Parse the 'color quoted' command. | |
enum CommandResult | quoted_colors_parse_uncolor (enum ColorId cid, int q_level, struct Buffer *err) |
Parse the 'uncolor quoted' command. | |
Variables | |
struct AttrColor | QuotedColors [COLOR_QUOTES_MAX] |
Array of colours for quoted email text. | |
static int | NumQuotedColors = 0 |
Number of colours for quoted email text. | |
Quoted-Email colours.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.
Definition in file quoted.c.
void quoted_colors_init | ( | void | ) |
Initialise the Quoted colours.
Definition at line 49 of file quoted.c.
void quoted_colors_reset | ( | void | ) |
Reset the quoted-email colours.
Definition at line 63 of file quoted.c.
void quoted_colors_cleanup | ( | void | ) |
Cleanup the quoted-email colours.
Definition at line 76 of file quoted.c.
struct AttrColor * quoted_colors_get | ( | int | q | ) |
Return the color of a quote, cycling through the used quotes.
q | Quote level |
enum | ColorId, e.g. MT_COLOR_QUOTED |
Definition at line 86 of file quoted.c.
int quoted_colors_num_used | ( | void | ) |
|
static |
Find the highest-numbered quotedN in use.
num | Highest number |
Definition at line 106 of file quoted.c.
bool quoted_colors_parse_color | ( | enum ColorId | cid, |
struct AttrColor * | ac_val, | ||
int | q_level, | ||
int * | rc, | ||
struct Buffer * | err | ||
) |
Parse the 'color quoted' command.
cid | Colour Id, should be MT_COLOR_QUOTED |
ac_val | Colour value to use |
q_level | Quoting depth level |
rc | Return code, e.g. MUTT_CMD_SUCCESS |
err | Buffer for error messages |
true | Colour was parsed |
Definition at line 125 of file quoted.c.
enum CommandResult quoted_colors_parse_uncolor | ( | enum ColorId | cid, |
int | q_level, | ||
struct Buffer * | err | ||
) |
Parse the 'uncolor quoted' command.
cid | Colour Id, should be MT_COLOR_QUOTED |
q_level | Quoting depth level |
err | Buffer for error messages |
enum | CommandResult, e.g. MUTT_CMD_SUCCESS |
Definition at line 184 of file quoted.c.
struct AttrColor QuotedColors[COLOR_QUOTES_MAX] |