X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/a6af8ec9d9c78f7a74b93814fb6031f98496ed50..4829d096feb337a55e2b866adb19acab9617b071:/etc/scan.curses diff --git a/etc/scan.curses b/etc/scan.curses index 67518ac9..ec8e356e 100644 --- a/etc/scan.curses +++ b/etc/scan.curses @@ -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. @@ -24,10 +25,9 @@ %4(msg)\ %; %; If it's the current message, output a '+' in the next column, otherwise -%; a space. Also use '-' if it's got a "Replied" header and 'E' if it's -%; encrypted (not currently supported) +%; a space. Also use '-' if it's got a "Replied" header. %; -%<(cur)+%| %>%<{replied}-%?{encrypted}E%| %>\ +%<(cur)+%| %>%<{replied}-%| %>\ %; %; Output the date, but mark it with a '*' if it's missing and was synthesized. %; Note the use of 02 to make sure the date is padded with a leading zero. @@ -36,10 +36,10 @@ %; %; 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. %;