** message could include a line like ``\fT[-- PGP output follows ...\fP" and
** give it the same color as your attachment color.
*/
- {"ascii_chars", DT_BOOL, R_BOTH, OPTASCIICHARS, "no" },
- /*
- ** .pp
- ** If \fIset\fP, Madmutt will use plain ASCII characters when displaying thread
- ** and attachment trees, instead of the default \fTACS\fP characters.
- */
{"askbcc", DT_BOOL, R_NONE, OPTASKBCC, "no" },
/*
** .pp
while (*s && *s < M_TREE_MAX) {
switch (*s) {
case M_TREE_LLCORNER:
- if (option (OPTASCIICHARS))
- addch ('`');
- else if (Charset_is_utf8)
- addstr ("\342\224\224"); /* WACS_LLCORNER */
- else
- addch (ACS_LLCORNER);
+ addch (ACS_LLCORNER);
break;
case M_TREE_ULCORNER:
- if (option (OPTASCIICHARS))
- addch (',');
- else if (Charset_is_utf8)
- addstr ("\342\224\214"); /* WACS_ULCORNER */
- else
- addch (ACS_ULCORNER);
+ addch (ACS_ULCORNER);
break;
case M_TREE_LTEE:
- if (option (OPTASCIICHARS))
- addch ('|');
- else if (Charset_is_utf8)
- addstr ("\342\224\234"); /* WACS_LTEE */
- else
- addch (ACS_LTEE);
+ addch (ACS_LTEE);
break;
case M_TREE_HLINE:
- if (option (OPTASCIICHARS))
- addch ('-');
- else if (Charset_is_utf8)
- addstr ("\342\224\200"); /* WACS_HLINE */
- else
- addch (ACS_HLINE);
+ addch (ACS_HLINE);
break;
case M_TREE_VLINE:
- if (option (OPTASCIICHARS))
- addch ('|');
- else if (Charset_is_utf8)
- addstr ("\342\224\202"); /* WACS_VLINE */
- else
- addch (ACS_VLINE);
+ addch (ACS_VLINE);
break;
case M_TREE_TTEE:
- if (option (OPTASCIICHARS))
- addch ('-');
- else if (Charset_is_utf8)
- addstr ("\342\224\254"); /* WACS_TTEE */
- else
- addch (ACS_TTEE);
+ addch (ACS_TTEE);
break;
case M_TREE_BTEE:
- if (option (OPTASCIICHARS))
- addch ('-');
- else if (Charset_is_utf8)
- addstr ("\342\224\264"); /* WACS_BTEE */
- else
- addch (ACS_BTEE);
+ addch (ACS_BTEE);
break;
case M_TREE_SPACE:
addch (' ');
*/
#ifndef _MUTT_MENU_H
#define _MUTT_MENU_H
-/*
- * This file is named mutt_menu.h so it doesn't collide with ncurses menu.h
- */
#include <lib-lib/lib-lib.h>
SETCOLOR (MT_COLOR_SIDEBAR);
for (i = 0; i < LINES-1; i++) {
move (i, SidebarWidth - delim_len);
- if (option (OPTASCIICHARS))
- addstr (NONULL (SidebarDelim));
- else if (!option (OPTASCIICHARS) && !m_strcmp(SidebarDelim, "|"))
+ if (!m_strcmp(SidebarDelim, "|"))
addch (ACS_VLINE);
- else if ((Charset_is_utf8) && !m_strcmp(SidebarDelim, "|"))
- addstr ("\342\224\202");
else
addstr (NONULL (SidebarDelim));
}
static void start_curses (void)
{
km_init (); /* must come before mutt_init */
-
- /* should come before initscr() so that ncurses 4.2 doesn't try to install
- its own SIGWINCH handler */
mutt_signal_initialize ();
if (initscr () == NULL) {
puts _("Error initializing terminal.");
enum {
OPTALLOW8BIT,
OPTALLOWANSI,
- OPTASCIICHARS,
OPTASKBCC,
OPTASKCC,
OPTASKFOLLOWUP,
/* Since the graphics characters have a value >255, I have to resort to
* using escape sequences to pass the information to print_enriched_string().
* These are the macros M_TREE_* defined in mutt.h.
- *
- * ncurses should automatically use the default ASCII characters instead of
- * graphics chars on terminals which don't support them (see the man page
- * for curs_addch).
*/
void mutt_draw_tree (CONTEXT * ctx)
{