+0.5.4
+ - add show_cursor config option (idea from Cheryl Homiak)
+
0.5.3
- add allcvs filters (Christoph Sobotka)
- removed a lefover debug message
\fBsort_field\fP=field
Defines the field to be used by the "sort by field" command. Default is "nick" (Nickname/Alias).
+.TP
+\fBshow_cursor\fP=[true|false]
+Defines if the cursor is visible in main display. Default is false.
+
.SH SAMPLE CONFIGURATION FILE
.nf
# field to be used with "sort by field" command
set sort_field=nick
+# show cursor in main display
+set show_cursor=false
+
.fi
.SH SEE ALSO
print_list_line(i, line, i == curitem);
}
+ if(opt_get_bool(BOOL_SHOW_CURSOR)) {
+ wmove(list, curitem - first_list_item, 0);
+ /* need to call refresh() to update the cursor positions */
+ refresh();
+ }
wrefresh(list);
}
{ "add_email_prevent_duplicates", OT_BOOL, BOOL_ADD_EMAIL_PREVENT_DUPLICATES, FALSE },
{ "sort_field", OT_STR, STR_SORT_FIELD, UL "nick" },
+ { "show_cursor", OT_BOOL, BOOL_SHOW_CURSOR, FALSE },
{ NULL }
};
BOOL_MUTT_RETURN_ALL_EMAILS,
BOOL_USE_ASCII_ONLY,
BOOL_ADD_EMAIL_PREVENT_DUPLICATES,
+ BOOL_SHOW_CURSOR,
BOOL_MAX
};
# field to be used with "sort by field" command
set sort_field=nick
+# show cursor in main display
+set show_cursor=false
+
# custom fields
#customfield 1 Name1
for(;;) {
can_resize = TRUE; /* it's safe to resize now */
- hide_cursor();
- if( should_resize )
+ if(!opt_get_bool(BOOL_SHOW_CURSOR))
+ hide_cursor();
+ if(should_resize)
refresh_screen();
ch = getch();
- show_cursor();
+ if(!opt_get_bool(BOOL_SHOW_CURSOR))
+ show_cursor();
can_resize = FALSE; /* it's not safe to resize anymore */
- switch( ch ) {
+ switch(ch) {
case 'q': return;
case 'Q': quit_abook(QUIT_DONTSAVE); break;
case 'P': print_stderr(selected_items() ?