# Julia and xterm Issue with Text Coloring

**URL:** https://discourse.julialang.org/t/julia-and-xterm-issue-with-text-coloring/16865
**Category:** New to Julia
**Created:** [October 27, 2018, 3:41pm UTC](https://discourse.julialang.org/t/julia-and-xterm-issue-with-text-coloring/16865 "2018-10-27T15:41:10Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![oliver](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/oliver/32/19264_2.png) [@oliver](https://discourse.julialang.org/u/oliver)
#### Post date: [October 27, 2018, 3:41pm UTC](https://discourse.julialang.org/t/julia-and-xterm-issue-with-text-coloring/16865/1 "2018-10-27T15:41:10Z")

</div>

I’m having an issue with text coloring in only one aspect:

![Screenshot_20181027_123819](https://global.discourse-cdn.com/julialang/original/3X/3/1/319b5b7ad9d48936bbd6b9a2f5775bdb2142e4bf.png)

This is the same using `Pkg.status("Xyz")` from the standard Julia prompt.

---

<div class="post-metadata">

### Author: ![Tamas\_Papp](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tamas_papp/32/25949_2.png) [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)
#### Post date: [October 27, 2018, 3:53pm UTC](https://discourse.julialang.org/t/julia-and-xterm-issue-with-text-coloring/16865/2 "2018-10-27T15:53:40Z")

</div>

Have you tried other terminals? Julia works fine for me in `xfce4-terminal` and `gnome-terminal`, with and without `tmux`.

Also, sharing your xterm settings could make this easier to reproduce.

---

<div class="post-metadata">

### Author: ![pfitzseb](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pfitzseb/32/45566_2.png) [@pfitzseb](https://discourse.julialang.org/u/pfitzseb)
#### Post date: [October 27, 2018, 3:59pm UTC](https://discourse.julialang.org/t/julia-and-xterm-issue-with-text-coloring/16865/3 "2018-10-27T15:59:26Z")

</div>

I’d suggest using a not broken colorscheme (i.e. one that has a properly set “light black” color).

---

<div class="post-metadata">

### Author: ![oliver](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/oliver/32/19264_2.png) [@oliver](https://discourse.julialang.org/u/oliver)
#### Post date: [October 27, 2018, 4:08pm UTC](https://discourse.julialang.org/t/julia-and-xterm-issue-with-text-coloring/16865/4 "2018-10-27T16:08:22Z")

</div>

Well, there is no “light black” it must be supposed to be “light grey”? These colors are not broken outside of Julia.

Also a `.Xdefaults` file for this installation has not been created, so assuming that there are default settings only which I’m not accustomed to generating. Here is `apres XTerm xterm`

> **[Hastebin: Send and Save Text or Code Snippets for Free | Toptal®](https://hastebin.com/kuvagujefi)**
>
> Hastebin is a free web-based pastebin service for storing and sharing text and code snippets with anyone. Get started now.

---

<div class="post-metadata">

### Author: ![pfitzseb](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pfitzseb/32/45566_2.png) [@pfitzseb](https://discourse.julialang.org/u/pfitzseb)
#### Post date: [October 27, 2018, 5:07pm UTC](https://discourse.julialang.org/t/julia-and-xterm-issue-with-text-coloring/16865/5 "2018-10-27T17:07:22Z")

</div>

> [@oliver](#):
>
> Well, there is no “light black” it must be supposed to be “light grey”?

Well, that color is called differently in different places (Julia calls it `:light_black` in `printstyled`) , so … probably?

> [@oliver](#):
>
> These colors are not broken outside of Julia.

Sure they are – Julia just uses your terminal’s default colorscheme. Check e.g. what

```bash
for (( i = 30; i < 38; i++ )); do echo -e "\033[0;"$i"m Normal: (0;$i); \033[1;"$i"m Light: (1;$i)"; done

```

returns; ideally, all colors should be legible:

 ![image](https://global.discourse-cdn.com/julialang/original/3X/2/6/26e7aa3925a1eb7433a51f64d95f332f7bd50dd6.png)

---

<div class="post-metadata">

### Author: ![oliver](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/oliver/32/19264_2.png) [@oliver](https://discourse.julialang.org/u/oliver)
#### Post date: [October 27, 2018, 5:25pm UTC](https://discourse.julialang.org/t/julia-and-xterm-issue-with-text-coloring/16865/7 "2018-10-27T17:25:30Z")

</div>

This has to do with the selection of the text being washed out by a light background. I don’t know what you mean by broken colors? This is not an issue in any other terminal programs. I simply need to change how Julia presents the text for `update`.

---

<div class="post-metadata">

### Author: ![oliver](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/oliver/32/19264_2.png) [@oliver](https://discourse.julialang.org/u/oliver)
#### Post date: [October 27, 2018, 5:30pm UTC](https://discourse.julialang.org/t/julia-and-xterm-issue-with-text-coloring/16865/8 "2018-10-27T17:30:15Z")

</div>

The fix is actually just:

`> julia --color=no`

---

<div class="post-metadata">

### Author: ![oliver](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/oliver/32/19264_2.png) [@oliver](https://discourse.julialang.org/u/oliver)
#### Post date: [October 27, 2018, 5:41pm UTC](https://discourse.julialang.org/t/julia-and-xterm-issue-with-text-coloring/16865/9 "2018-10-27T17:41:10Z")

</div>

It would be nice not to necessarily have to turn all the colors off just to check `Pkg.status()`.

---

<div class="post-metadata">

### Author: ![pfitzseb](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pfitzseb/32/45566_2.png) [@pfitzseb](https://discourse.julialang.org/u/pfitzseb)
#### Post date: [October 27, 2018, 6:19pm UTC](https://discourse.julialang.org/t/julia-and-xterm-issue-with-text-coloring/16865/10 "2018-10-27T18:19:45Z")

</div>

Compare

 ![image](https://global.discourse-cdn.com/julialang/original/3X/b/1/b15563d825cb1ffe9422a32f90a0119d891f1aa3.png)  
and  
 ![image](https://global.discourse-cdn.com/julialang/original/3X/0/d/0da704571be4644f95316831dd14b8a005909660.png)

As I said before, this is just a question of your terminal style.

---

<div class="post-metadata">

### Author: ![oliver](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/oliver/32/19264_2.png) [@oliver](https://discourse.julialang.org/u/oliver)
#### Post date: [October 31, 2018, 2:23am UTC](https://discourse.julialang.org/t/julia-and-xterm-issue-with-text-coloring/16865/12 "2018-10-31T02:23:11Z")

</div>

To be certain this issue is not resolved by changing my OSs system defaults.

There is this: [https://docs.julialang.org/en/latest/stdlib/REPL/#Customizing-Colors-1](https://docs.julialang.org/en/latest/stdlib/REPL/#Customizing-Colors-1)
