to-html icon indicating copy to clipboard operation
to-html copied to clipboard

Does not support reversed i.e. code 7

Open dhruvkb opened this issue 11 months ago • 2 comments

ANSI code 7 inverts the background and foreground colors, which can be helpful for giving the text a bold attention-grabbing appearance.

Screenshot 2023-07-23 at 5 04 32 AM

to-html does not render this properly, instead showing the text with regular background and foreground colors.

$ to-html 'printf '\''\e[7mHello World!\e[0m'\'''
<pre class="terminal">
<span class='shell'>&gt; </span><span class='cmd'>printf</span> <span class='str'>&#39;\e[7mHello World!\e[0m&#39;</span>
Hello World!<span class='shell'>&gt; </span><span class='caret'> </span>
</pre>

dhruvkb avatar Jul 22 '23 23:07 dhruvkb

@Aloso I can take this unless you want to save it for a new contributor

CosmicHorrorDev avatar Nov 24 '23 00:11 CosmicHorrorDev

@CosmicHorrorDev feel free!

Aloso avatar Nov 24 '23 01:11 Aloso