Skip to content

Commit

Permalink
Fix ANSI to RGB transformation function
Browse files Browse the repository at this point in the history
  • Loading branch information
jsbautista committed Jun 13, 2024
1 parent f5d14e3 commit ddedcdf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qtconsole/ansi_code_processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ def _parse_ansi_color(self, color, intensity):
Based on: https://gist.github.com/MightyPork/1d9bd3a3fd4eb1a661011560f6921b5b
"""
parsed_color = None
if color < 8:
if color < 16:
# Adjust for intensity, if possible.
if intensity > 0:
color += 8
Expand Down

0 comments on commit ddedcdf

Please sign in to comment.