X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/a6af8ec9d9c78f7a74b93814fb6031f98496ed50..986abcee996d486db0b9c753974f3cb0eac2e9b2:/etc/scan.curses?ds=inline diff --git a/etc/scan.curses b/etc/scan.curses index 67518ac9..f2d5d137 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. @@ -36,10 +37,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. %;