]> diplodocus.org Git - nmh/blobdiff - etc/scan.curses
Switch date to yyyy-mm-dd in generated mh-chart.man.
[nmh] / etc / scan.curses
index 67518ac91401ab6f50d0e52a1df8c7f9f6db6949..f2d5d137e571bf22ea0237c3d688f36a296aa4b2 100644 (file)
@@ -1,6 +1,6 @@
 %; scan.curses
 %;
-%; This file shows how to use function escapes to enable hilighting
+%; This file shows how to use function escapes to enable highlighting
 %; sequences for terminals that have the appropriate entries in their
 %; termcap/terminfo files.  Also it goes into more detail on exactly
 %; what each line does.
@@ -9,14 +9,15 @@
 %;
 %;
 %; First, test to see if this is the current message.  If it is, then
-%; output the bold sequence for this terminal.  We use %(zputlit) so the
+%; output the standout sequence for this terminal (or the color red).
+%; We use %(zputlit) so the
 %; characters we output don't count against the terminal width.
 %;
-%<(cur)%(zputlit(bold))%>\
+%<(cur)%<(hascolor)%(zputlit(fgcolor red))%|%(zputlit(standout))%>%>\
 %;
-%; If it's unseen, mark it with an underline
+%; If it's unseen, mark it with bold (or the color green)
 %;
-%<(unseen)%(zputlit(underline))%>\
+%<(unseen)%<(hascolor)%(zputlit(fgcolor green))%|%(zputlit(bold))%>%>\
 %;
 %; Next, output the message number.  We print it out using 4 digits, right-
 %; justified, padding with spaces.
 %;
 %; If the message is from me, print out who the message was sent to.
 %; Otherwise, print out who it was from.
-%<(mymbox{from})%<{to}To:%14(decode(friendly{to}))%>%>\
-%<(zero)%17(decode(friendly{from}))%>  \
+%<(mymbox{from})%<{to}To:%14(unquote(decode(friendly{to})))%>%>\
+%<(zero)%17(unquote(decode(friendly{from})))%>  \
 %;
-%; Print out the subject and any of th mesage body that will fit on the
+%; Print out the subject and any of the message body that will fit on the
 %; rest of the line.  After that, print the terminal reset code to reset
 %; all of the attributes to the next line.
 %;