3 %; This file shows how to use ANSI escape sequences to highlight a
4 %; current message in yellow and any unseen messages in cyan. It
5 %; differs from the default scan format in the two additional lines at
6 %; the beginning and the literal sequence at the end.
8 %; To enable use of this format, add "-form scan.highlighted" to your
9 %; scan invocation or to your profile (~/.mh_profile), e.g.:
10 %; scan: -form scan.highlighted
12 %; You can optionally copy this file to your MH Path and modify as
15 %; The mh-sequence(5) man page describes the unseen sequence.
17 %; A more readable approach would add escape sequences to your profile, e.g.:
19 %; bright-black:
\e[1;30m
26 %; bright-white:
\e[1;37m
27 %; underlined-white:
\e[4;37m
28 %; To use them in the format, e.g., at the beginning:
29 %; %<(cur)%(void(profile yellow))%(zputlit)%>\
30 %; %<(unseen)%(void(profile cyan))%(zputlit)%>\
32 %; %(void(profile normal))%(zputlit)
34 %<(cur)%(void(lit
\e[33m))%(zputlit)%>\
35 %<(unseen)%(void(lit
\e[36m))%(zputlit)%>\
36 %4(msg)%<(cur)+%| %>%<{replied}-%?{encrypted}E%| %>\
37 %02(mon{date})/%02(mday{date})%<{date} %|*%>\
38 %<(mymbox{from})%<{to}To:%14(decode(friendly{to}))%>%>\
39 %<(zero)%17(decode(friendly{from}))%> \
40 %(decode{subject})%<{body}<<%{body}>>%>%(void(lit
\e[m))%(zputlit)