Skip to content

Commit

Permalink
Add terminal color support (#1025)
Browse files Browse the repository at this point in the history
Fixes #1024
  • Loading branch information
blink1073 committed Nov 21, 2022
1 parent 6607b9d commit ce0b6c2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ipykernel/zmqshell.py
Expand Up @@ -482,6 +482,9 @@ def init_environment(self):
# These two ensure 'ls' produces nice coloring on BSD-derived systems
env["TERM"] = "xterm-color"
env["CLICOLOR"] = "1"
# These two add terminal color in tools that support it.
env["FORCE_COLOR"] = "1"
env["CLICOLOR_FORCE"] = "1"
# Since normal pagers don't work at all (over pexpect we don't have
# single-key control of the subprocess), try to disable paging in
# subprocesses as much as possible.
Expand Down

0 comments on commit ce0b6c2

Please sign in to comment.