Changing color of stacktrace info in REPL?

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.)

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

I tried both the color symbols and the escape codes.

What does Base.stackframe_function_color() say?

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

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

Should be export JULIA_STACKFRAME_FUNCTION_COLOR=blue

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).

No, it changes the JULIA_STACKFRAME_FUNCTION_COLOR only.

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

Sorry for entering this thread, but I have similar issue in my Linux shell with solarized scheme on 1.6.0-DEV

I’ve tried different values for JULIA_STACKFRAME_FUNCTION_COLOR to no avail.

1 Like