selectel / pyte

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

Add missing colors to FG_BG_256 #111

Closed jwodder closed 6 years ago

jwodder commented 6 years ago

pyte.graphics.FG_BG_256, despite what its name and documentation both imply, currently only contains 254 colors instead of 256. This patch fixes that, bringing colors 16 and up in line with the formulas given at https://stackoverflow.com/a/27165165/744178; specifically, color 232 is changed from #000000 to #080808, and colors 254 (#e4e4e4) and 255 (#eeeeee) are added.

superbobry commented 6 years ago

Thanks!