Reference Implementation: Formatting with Color Marc Nieper-Wißkirchen (22 Feb 2019 08:46 UTC)
Re: Reference Implementation: Formatting with Color Jim Rees (22 Feb 2019 15:38 UTC)
Re: Reference Implementation: Formatting with Color Marc Nieper-Wißkirchen (22 Feb 2019 15:45 UTC)

Reference Implementation: Formatting with Color Marc Nieper-Wißkirchen 22 Feb 2019 08:45 UTC

The following gives an unexpected result:

(display (show #f (as-red (as-bold (as-underline "Hello!\n") "World!\n"))))

The color of "Hello!\n" is red, but the color of "World!\n" is white.

(The reference implementation uses an (undocumented) state variable
"color". I think it has to make use of two more state variables,
namely "underline?" and "bold?".)

Marc