[Remind-Fans] Formatting text
Tim Chase
remind at tim.thechases.com
Fri Nov 1 21:19:52 EDT 2024
On 2024-11-02 00:20, Remind list wrote:
> Is it possible to make text bold, italic, underlined, hyperlinked or
> any other type of formatting?
You might be able to cheat a bit to coerce it:
SET ESC char(27)
SET CSI ESC + "["
SET reset CSI + "0m"
SET bold CSI + "1m"
SET italic CSI + "3m"
SET underline CSI + "4m"
IF $UseVTColors || $Use256Colors || $UseTrueColors
FSET b(s) bold + s + reset
FSET i(s) italic + s + reset
FSET u(s) underline + s + reset
ELSE
FSET b(s) s
FSET i(s) s
FSET u(s) s
ENDIF
MSG I love [b("tacos")], [i("pizza")], [u("brownies")], and cookies
It should do nothing by default, but if you've specified color output
with -@ like
$ rem -q - at 2
it should emit the ANSI[1] sequences for the bold/italic/underline.
-tim
[1] https://en.wikipedia.org/wiki/Ansi_color
More information about the Remind-fans
mailing list