Skip to content
This repository has been archived by the owner on May 6, 2024. It is now read-only.

Commit

Permalink
Merge pull request #142 from facebookresearch/moo/rearrange-tty-colors
Browse files Browse the repository at this point in the history
Rerange tty_colors to [0, 32)
  • Loading branch information
tscmoo authored Dec 14, 2020
2 parents 5566fdf + f0250de commit 19509c0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/nle.c
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,9 @@ vt_char_color_extract(TMTCHAR *c)
break;
}

color |= (c->a.reverse << 7); // Flip sign if reverse
if (c->a.reverse) {
color += CLR_MAX;
}
return color;
}

Expand Down

0 comments on commit 19509c0

Please sign in to comment.