# Changing color of stacktrace info in REPL?

**URL:** https://discourse.julialang.org/t/changing-color-of-stacktrace-info-in-repl/5075
**Category:** New to Julia
**Tags:** repl, colors
**Created:** [July 26, 2017, 5:44pm UTC](https://discourse.julialang.org/t/changing-color-of-stacktrace-info-in-repl/5075 "2017-07-26T17:44:13Z")
**Posts on this page:** 11
**Page:** 1

<div class="post-metadata">

### Author: ![anon94023334](https://avatars.discourse-cdn.com/v4/letter/a/e274bd/32.png) [@anon94023334](https://discourse.julialang.org/u/anon94023334)
#### Post date: [July 26, 2017, 5:44pm UTC](https://discourse.julialang.org/t/changing-color-of-stacktrace-info-in-repl/5075/1 "2017-07-26T17:44:13Z")

</div>

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

---

<div class="post-metadata">

### Author: ![kristoffer.carlsson](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/kristoffer.carlsson/32/22_2.png) [@kristoffer.carlsson](https://discourse.julialang.org/u/kristoffer.carlsson)
#### Post date: [July 26, 2017, 9:51pm UTC](https://discourse.julialang.org/t/changing-color-of-stacktrace-info-in-repl/5075/2 "2017-07-26T21:51:35Z")

</div>

> [@anon94023334](#):
>
> I’ve tried setting JULIA\_STACKFRAME\_FUNCTION\_COLOR and JULIA\_STACKFRAME\_LINEINFO\_COLOR to no effect.

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

---

<div class="post-metadata">

### Author: ![anon94023334](https://avatars.discourse-cdn.com/v4/letter/a/e274bd/32.png) [@anon94023334](https://discourse.julialang.org/u/anon94023334)
#### Post date: [July 26, 2017, 10:10pm UTC](https://discourse.julialang.org/t/changing-color-of-stacktrace-info-in-repl/5075/3 "2017-07-26T22:10:41Z")

</div>

I tried both the color symbols and the escape codes.

---

<div class="post-metadata">

### Author: ![kristoffer.carlsson](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/kristoffer.carlsson/32/22_2.png) [@kristoffer.carlsson](https://discourse.julialang.org/u/kristoffer.carlsson)
#### Post date: [July 26, 2017, 10:12pm UTC](https://discourse.julialang.org/t/changing-color-of-stacktrace-info-in-repl/5075/4 "2017-07-26T22:12:34Z")

</div>

What does `Base.stackframe_function_color()` say?

---

<div class="post-metadata">

### Author: ![anon94023334](https://avatars.discourse-cdn.com/v4/letter/a/e274bd/32.png) [@anon94023334](https://discourse.julialang.org/u/anon94023334)
#### Post date: [July 26, 2017, 10:13pm UTC](https://discourse.julialang.org/t/changing-color-of-stacktrace-info-in-repl/5075/5 "2017-07-26T22:13:49Z")

</div>

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

---

<div class="post-metadata">

### Author: ![anon94023334](https://avatars.discourse-cdn.com/v4/letter/a/e274bd/32.png) [@anon94023334](https://discourse.julialang.org/u/anon94023334)
#### Post date: [August 2, 2017, 10:57pm UTC](https://discourse.julialang.org/t/changing-color-of-stacktrace-info-in-repl/5075/6 "2017-08-02T22:57:42Z")

</div>

```julia
julia> Base.stackframe_function_color()
:bold

```

I ran

```julia
export JULIA_STACKFRAME_FUNCTION_COLOR=:blue
./julia

```

and in the REPL, I see

```julia
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

```

---

<div class="post-metadata">

### Author: ![kristoffer.carlsson](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/kristoffer.carlsson/32/22_2.png) [@kristoffer.carlsson](https://discourse.julialang.org/u/kristoffer.carlsson)
#### Post date: [August 2, 2017, 10:59pm UTC](https://discourse.julialang.org/t/changing-color-of-stacktrace-info-in-repl/5075/7 "2017-08-02T22:59:08Z")

</div>

Should be `export JULIA_STACKFRAME_FUNCTION_COLOR=blue`

---

<div class="post-metadata">

### Author: ![anon94023334](https://avatars.discourse-cdn.com/v4/letter/a/e274bd/32.png) [@anon94023334](https://discourse.julialang.org/u/anon94023334)
#### Post date: [August 2, 2017, 11:01pm UTC](https://discourse.julialang.org/t/changing-color-of-stacktrace-info-in-repl/5075/8 "2017-08-02T23:01:44Z")

</div>

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

---

<div class="post-metadata">

### Author: ![kristoffer.carlsson](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/kristoffer.carlsson/32/22_2.png) [@kristoffer.carlsson](https://discourse.julialang.org/u/kristoffer.carlsson)
#### Post date: [August 2, 2017, 11:04pm UTC](https://discourse.julialang.org/t/changing-color-of-stacktrace-info-in-repl/5075/9 "2017-08-02T23:04:38Z")

</div>

No, it changes the JULIA\_STACKFRAME\_FUNCTION\_COLOR only.

---

<div class="post-metadata">

### Author: ![anon94023334](https://avatars.discourse-cdn.com/v4/letter/a/e274bd/32.png) [@anon94023334](https://discourse.julialang.org/u/anon94023334)
#### Post date: [August 2, 2017, 11:11pm UTC](https://discourse.julialang.org/t/changing-color-of-stacktrace-info-in-repl/5075/10 "2017-08-02T23:11:52Z")

</div>

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

---

<div class="post-metadata">

### Author: ![Skoffer](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/skoffer/32/378_2.png) [@Skoffer](https://discourse.julialang.org/u/Skoffer)
#### Post date: [November 23, 2020, 1:50pm UTC](https://discourse.julialang.org/t/changing-color-of-stacktrace-info-in-repl/5075/11 "2020-11-23T13:50:26Z")

</div>

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

 ![flameshot-2020-11-23T15-47-59](https://global.discourse-cdn.com/julialang/original/3X/1/8/1899bb136e4bbf05f38d02674fd82fba358023ac.png)

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