selectel / pyte

Simple VTXXX-compatible linux terminal emulator
http://pyte.readthedocs.org/
GNU Lesser General Public License v3.0
649 stars 101 forks source link

make AIXTERM colors return "bright" and unset "bold" so we can decide… #130

Closed jason-green-io closed 4 years ago

jason-green-io commented 4 years ago

Ran into an issue writing a terminal emulator for a screen on a Raspberry Pi. There was no way to detect bright colours if the bold attribute was already set. This change allows for the code doing the formatting to decide how to interpret fg, bg, bold combos when AIXTERM is involved.

I updated the CSS for the example, but didn't actually add any bright colours, they're just copies, mostly so the JavaScript wouldn't fail.

superbobry commented 4 years ago

Thanks!