rburns / ansi-to-html

Convert ansi escaped text streams to html.
MIT License
354 stars 48 forks source link

Add support for xterm256 background color sequences #92

Closed remolueoend closed 3 years ago

remolueoend commented 3 years ago

Hey there Rob

I've just picked up a fun project of building a simple web-based terminal and your library is of great help, so first of all thanks a lot for your work!

I am anything but an expert of ANSI escape codes, but with the help of Wikipedia et. al, I tried to add support for 8bit/256-color background sequences. What do you think about these changes? I hope I got the naming and formatting right.

Commit Description:

Thanks for looking into it, remolueoend

remolueoend commented 3 years ago

~Sorry for the second commit, that one shouldn't be part of this PR, I'll move it asap.~ Fixed