Skip to content

Commit ce0b6c2

Browse files
authored
Add terminal color support (#1025)
Fixes #1024
1 parent 6607b9d commit ce0b6c2

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

ipykernel/zmqshell.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -482,6 +482,9 @@ def init_environment(self):
482482
# These two ensure 'ls' produces nice coloring on BSD-derived systems
483483
env["TERM"] = "xterm-color"
484484
env["CLICOLOR"] = "1"
485+
# These two add terminal color in tools that support it.
486+
env["FORCE_COLOR"] = "1"
487+
env["CLICOLOR_FORCE"] = "1"
485488
# Since normal pagers don't work at all (over pexpect we don't have
486489
# single-key control of the subprocess), try to disable paging in
487490
# subprocesses as much as possible.

0 commit comments

Comments
 (0)