Changing color of stacktrace info in REPL?

repl
colors

#1

For some reason my stacktrace info is being output as white text, which is a problem since I use a near-white background for my REPL. I’ve tried setting JULIA_STACKFRAME_FUNCTION_COLOR and JULIA_STACKFRAME_LINEINFO_COLOR to no effect. What’s the correct way to change the color of the stacktrace output?

(Note: this is bash on windows.)


#2

As in ENV["JULIA_STACKFRAME_FUNCTION_COLOR"] = :blue.?


#3

I tried both the color symbols and the escape codes.


#4

What does Base.stackframe_function_color() say?


#5

Unfortunately I won’t be able to tell until next week.


#6
julia> Base.stackframe_function_color()
:bold

I ran

export JULIA_STACKFRAME_FUNCTION_COLOR=:blue
./julia

and in the REPL, I see

julia> ENV
Base.EnvHash with 18 entries:
  "SHELL"                           => "/bin/bash"
  "TERM"                            => "xterm"
  "JULIA_STACKFRAME_FUNCTION_COLOR" => ":blue"
  "OLDPWD"                          => "/home/seth"
  "USER"                            => "seth"
  "NAME"                            => "GS"
  "LS_COLORS"                       => "rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:s…
  "HOSTTYPE"                        => "x86_64"
  "PATH"                            => "/usr/local/bin:/usr/bin:/bin:/usr/local…
  "PWD"                             => "/home/seth/dev/julia"
  "LANG"                            => "en_US.UTF-8"
  "SHLVL"                           => "1"
  "HOME"                            => "/home/seth"
  "LOGNAME"                         => "seth"
  "LESSOPEN"                        => "| /usr/bin/lesspipe %s"
  "LESSCLOSE"                       => "/usr/bin/lesspipe %s %s"
  "_"                               => "./julia"
  "OPENBLAS_MAIN_FREE"              => "1"

julia> Base.stackframe_function_color()
:bold

#7

Should be export JULIA_STACKFRAME_FUNCTION_COLOR=blue


#8

Ah, that works. It still doesn’t change other things (the repl help is mainly bright white, which is difficult to read on a 0xddddd background).


#9

No, it changes the JULIA_STACKFRAME_FUNCTION_COLOR only.


#10

Understood - but I meant JULIA_HELP_COLOR - it doesn’t change the help text.