On Wed, Jul 15, 2020 at 4:47 AM Alex Shinn <xxxxxx@gmail.com> wrote:

Yes, all ANSI escapes are preserved as if no trimming had occurred:

Just to write this down, do with it what you will.

An ANSI *escape* sequence matches the regex "\e[@-_]".   An ANSI *control* sequence technically matches the regex "\e\[[0-?]*[ -\\]*[@-~]" (note the space in the second character class). In practice, however, the simpler control sequence regex "\e\[[0-9;]*[@-~]" suffices.



John Cowan          http://vrici.lojban.org/~cowan        xxxxxx@ccil.org
In might the Feanorians / that swore the unforgotten oath
brought war into Arvernien / with burning and with broken troth.
and Elwing from her fastness dim / then cast her in the waters wide,
but like a mew was swiftly borne, / uplifted o'er the roaring tide.
        --the Earendillinwe