Commit bcdba41c authored by Thomas Roessler's avatar Thomas Roessler

Add $braille_friendly. Behavior originally suggested by Sébastien

Hinderer <Sebastien.Hinderer@libertysurf.fr>.
parent 7ce65f8c
......@@ -576,6 +576,8 @@ int mutt_index_menu (void)
if (option (OPTARROWCURSOR))
move (menu->current - menu->top + menu->offset, 2);
else if (option (OPTBRAILLEFRIENDLY))
move (menu->current - menu->top + menu->offset, 0);
else
move (menu->current - menu->top + menu->offset, COLS - 1);
mutt_refresh ();
......
......@@ -276,6 +276,15 @@ struct option_t MuttVars[] = {
** When this variable is set, mutt will include Delivered-To headers when
** bouncing messages. Postfix users may wish to unset this variable.
*/
{ "braille_friendly", DT_BOOL, R_NONE, OPTBRAILLEFRIENDLY, 0 },
/*
** .pp
** When this variable is set, mutt will place the cursor at the beginning
** of the current line in menus, even when the arrow_cursor variable
** is unset, making it easier for blind persons using Braille displays to
** follow these menus. The option is disabled by default because many
** visual terminals don't permit making the cursor invisible.
*/
{ "charset", DT_STR, R_NONE, UL &Charset, UL 0 },
/*
** .pp
......
......@@ -870,8 +870,14 @@ int mutt_menuLoop (MUTTMENU *menu)
/* move the cursor out of the way */
move (menu->current - menu->top + menu->offset,
(option (OPTARROWCURSOR) ? 2 : COLS-1));
if (option (OPTARROWCURSOR))
move (menu->current - menu->top + menu->offset, 2);
else if (option (OPTBRAILLEFRIENDLY))
move (menu->current - menu->top + menu->offset, 0);
else
move (menu->current - menu->top + menu->offset, COLS - 1);
mutt_refresh ();
......
......@@ -334,6 +334,7 @@ enum
OPTBEEP,
OPTBEEPNEW,
OPTBOUNCEDELIVERED,
OPTBRAILLEFRIENDLY,
OPTCHECKNEW,
OPTCOLLAPSEUNREAD,
OPTCONFIRMAPPEND,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment