Skip to content

Commit

Permalink
force radian/ipython to use 256 color
Browse files Browse the repository at this point in the history
  • Loading branch information
randy3k committed Aug 16, 2024
1 parent 9d17345 commit 3d59b85
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions terminus/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,11 @@ def run_async(

_env.update(env)

# force prompt-toolkit to use 256 color
if "PROMPT_TOOLKIT_COLOR_DEPTH" not in os.environ \
and "PROMPT_TOOLKIT_COLOR_DEPTH" not in _env:
_env["PROMPT_TOOLKIT_COLOR_DEPTH"] = "DEPTH_8_BIT"

# paths is passed if this was invoked from the side bar context menu
if paths:
cwd = paths[0]
Expand Down

0 comments on commit 3d59b85

Please sign in to comment.