# Change the color of the text in console

**URL:** https://discourse.julialang.org/t/change-the-color-of-the-text-in-console/39937
**Category:** New to Julia
**Created:** [May 22, 2020, 7:07am UTC](https://discourse.julialang.org/t/change-the-color-of-the-text-in-console/39937 "2020-05-22T07:07:30Z")
**Posts on this page:** 14
**Page:** 1

<div class="post-metadata">

### Author: ![catosp](https://avatars.discourse-cdn.com/v4/letter/c/91b2a8/32.png) [@catosp](https://discourse.julialang.org/u/catosp)
#### Post date: [May 22, 2020, 7:07am UTC](https://discourse.julialang.org/t/change-the-color-of-the-text-in-console/39937/1 "2020-05-22T07:07:30Z")

</div>

Hello !

Is there a way to change the color of println() output text in console in windows?

Thank you!

---

<div class="post-metadata">

### Author: ![Iulian.Cioarca](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/iulian.cioarca/32/30166_2.png) [@Iulian.Cioarca](https://discourse.julialang.org/u/Iulian.Cioarca)
#### Post date: [May 22, 2020, 7:14am UTC](https://discourse.julialang.org/t/change-the-color-of-the-text-in-console/39937/2 "2020-05-22T07:14:16Z")

</div>

I don’t know if that is possible, but you can always replace `println` with `@info` if you want to make your logs more visible.

---

<div class="post-metadata">

### Author: ![jbrea](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jbrea/32/3879_2.png) [@jbrea](https://discourse.julialang.org/u/jbrea)
#### Post date: [May 22, 2020, 7:16am UTC](https://discourse.julialang.org/t/change-the-color-of-the-text-in-console/39937/3 "2020-05-22T07:16:07Z")

</div>

Did you already have a look at `printstyled`?

---

<div class="post-metadata">

### Author: ![catosp](https://avatars.discourse-cdn.com/v4/letter/c/91b2a8/32.png) [@catosp](https://discourse.julialang.org/u/catosp)
#### Post date: [May 22, 2020, 7:17am UTC](https://discourse.julialang.org/t/change-the-color-of-the-text-in-console/39937/4 "2020-05-22T07:17:12Z")

</div>

Ok, thank you !

---

<div class="post-metadata">

### Author: ![catosp](https://avatars.discourse-cdn.com/v4/letter/c/91b2a8/32.png) [@catosp](https://discourse.julialang.org/u/catosp)
#### Post date: [May 22, 2020, 7:18am UTC](https://discourse.julialang.org/t/change-the-color-of-the-text-in-console/39937/5 "2020-05-22T07:18:43Z")

</div>

YES!!! that is what I want ! thank you!!!

---

<div class="post-metadata">

### Author: ![Iulian.Cioarca](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/iulian.cioarca/32/30166_2.png) [@Iulian.Cioarca](https://discourse.julialang.org/u/Iulian.Cioarca)
#### Post date: [May 22, 2020, 7:19am UTC](https://discourse.julialang.org/t/change-the-color-of-the-text-in-console/39937/6 "2020-05-22T07:19:00Z")

</div>

The solution of @jbrea is much better! I didn’t know about that.

---

<div class="post-metadata">

### Author: ![catosp](https://avatars.discourse-cdn.com/v4/letter/c/91b2a8/32.png) [@catosp](https://discourse.julialang.org/u/catosp)
#### Post date: [May 22, 2020, 7:24am UTC](https://discourse.julialang.org/t/change-the-color-of-the-text-in-console/39937/7 "2020-05-22T07:24:33Z")

</div>

The solution of @jbrea works only in REPL. In console is not working, the output is still white text on black background.

---

<div class="post-metadata">

### Author: ![jbrea](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jbrea/32/3879_2.png) [@jbrea](https://discourse.julialang.org/u/jbrea)
#### Post date: [May 22, 2020, 7:28am UTC](https://discourse.julialang.org/t/change-the-color-of-the-text-in-console/39937/8 "2020-05-22T07:28:17Z")

</div>

Try run julia with the `--color=yes` flag.

---

<div class="post-metadata">

### Author: ![catosp](https://avatars.discourse-cdn.com/v4/letter/c/91b2a8/32.png) [@catosp](https://discourse.julialang.org/u/catosp)
#### Post date: [May 22, 2020, 7:31am UTC](https://discourse.julialang.org/t/change-the-color-of-the-text-in-console/39937/9 "2020-05-22T07:31:59Z")

</div>

@jbrea Now works! How can I do this to work by double clicking the program and not by writing in console “julia --color=yes program.jl” ? Thank you!

---

<div class="post-metadata">

### Author: ![jbrea](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jbrea/32/3879_2.png) [@jbrea](https://discourse.julialang.org/u/jbrea)
#### Post date: [May 22, 2020, 7:40am UTC](https://discourse.julialang.org/t/change-the-color-of-the-text-in-console/39937/10 "2020-05-22T07:40:27Z")

</div>

> [@catosp](#):
>
> How can I do this to work by double clicking the program

No clue, it’s a long time I did something on Windows 🙂 Is there a way to edit the command that is executed when you double click a file?

---

<div class="post-metadata">

### Author: ![oheil](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/oheil/32/220745_2.png) [@oheil](https://discourse.julialang.org/u/oheil)
#### Post date: [May 22, 2020, 7:43am UTC](https://discourse.julialang.org/t/change-the-color-of-the-text-in-console/39937/11 "2020-05-22T07:43:36Z")

</div>

You typically double click a link to the .exe file. You can edit the properties of this link.

---

<div class="post-metadata">

### Author: ![catosp](https://avatars.discourse-cdn.com/v4/letter/c/91b2a8/32.png) [@catosp](https://discourse.julialang.org/u/catosp)
#### Post date: [May 22, 2020, 7:45am UTC](https://discourse.julialang.org/t/change-the-color-of-the-text-in-console/39937/12 "2020-05-22T07:45:11Z")

</div>

I tried to create a shortcut to program.jl and to edit the properties but doesn’t work!

---

<div class="post-metadata">

### Author: ![oheil](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/oheil/32/220745_2.png) [@oheil](https://discourse.julialang.org/u/oheil)
#### Post date: [May 22, 2020, 8:50am UTC](https://discourse.julialang.org/t/change-the-color-of-the-text-in-console/39937/13 "2020-05-22T08:50:28Z")

</div>

- Create a new link to the julia.exe.

- Edit this link and add `--color=yes` to the line in target, which is for me `C:\Users\User\AppData\Local\Programs\Julia\Julia-1.4.1\bin\julia.exe`, so edit this to `C:\Users\User\AppData\Local\Programs\Julia\Julia-1.4.1\bin\julia.exe --color=yes`

- Now right click on your program.jl and use “open with…”, navigate to your new link to julia.exe and check “always open …” (don’t know exact option, as I am on a german W10)

---

<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: [May 22, 2020, 9:13am UTC](https://discourse.julialang.org/t/change-the-color-of-the-text-in-console/39937/14 "2020-05-22T09:13:42Z")

</div>

There is also the excellent

> **[GitHub - KristofferC/Crayons.jl: Colored and styled strings for terminals.](https://github.com/KristofferC/Crayons.jl)**
>
> Colored and styled strings for terminals. Contribute to KristofferC/Crayons.jl development by creating an account on GitHub.

for people in touch with their inner child 😉
