Skip to content

Commit

Permalink
Add a comment block regarding the behavior of VT340 palette(Issue #12)
Browse files Browse the repository at this point in the history
  • Loading branch information
saitoha committed Dec 30, 2014
1 parent 29fcda3 commit 9c996f1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/dither.c
Expand Up @@ -112,6 +112,12 @@ static const unsigned char pal_xterm256[] = {
};


/*
* VT340 undocumented behavior regarding the color palette reported
* by Vertis Sidus(@vrtsds):
* it loads the first fifteen colors as 1 through 15, and loads the
* sixteenth color as 0.
*/
static const unsigned char pal_vt340_mono[] = {
/* 1 Gray-2 */ 13 * 255 / 100, 13 * 255 / 100, 13 * 255 / 100,
/* 2 Gray-4 */ 26 * 255 / 100, 26 * 255 / 100, 26 * 255 / 100,
Expand Down

0 comments on commit 9c996f1

Please sign in to comment.