Added format support for zputlit function escape. It requires
[mmh] / etc / scan.highlighted
1 %; scan.highlighted
2 %;
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.
7 %;
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
11 %;
12 %; You can optionally copy this file to your MH Path and modify as
13 %; desired.
14 %;
15 %; The mh-sequence(5) man page describes the unseen sequence.
16 %;
17 %; A more readable approach would add escape sequences to your profile, e.g.:
18 %;     normal: \e[m
19 %;     bright-black: \e[1;30m
20 %;     red: \e[31m
21 %;     green: \e[32m
22 %;     yellow: \e[33m
23 %;     blue: \e[34m
24 %;     magenta: \e[35m
25 %;     cyan: \e[36m
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)%>\
31 %; and at the end:
32 %;     %(void(profile normal))%(zputlit)
33 %;
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)