https://github.com/JuliaLang/julia
Revision 7baaafeea35d3d9ebc2d1bff8045898774dda93f authored by Jaakko Ruohio on 10 February 2024, 03:45:25 UTC, committed by GitHub on 10 February 2024, 03:45:25 UTC
```
for i in 0:255
    print("\x1b[38;2;$i;0;0m█")
end
```
shows on Windows Terminal

![image](https://github.com/JuliaLang/julia/assets/7318249/d742b739-9645-4daa-8572-d4c28803013e)
so it does have true-color support.
With this PR, `Base.ttyhastruecolor()` returns `true` on Windows
Terminal and Cygwin64 Terminal, those are the ones I tried out.

Notes:

https://devblogs.microsoft.com/commandline/24-bit-color-in-the-windows-console/
says
> in Windows 10 Insiders Build # 14931, we’ve updated the Windows
Console to support full, glorious 24-bit RGB true color!
1 parent 3952e78
History
Tip revision: 7baaafeea35d3d9ebc2d1bff8045898774dda93f authored by Jaakko Ruohio on 10 February 2024, 03:45:25 UTC
Truecolor terminal capability detection for Windows (#53257)
Tip revision: 7baaafe
File Mode Size
.devcontainer
.github
base
cli
contrib
deps
doc
etc
src
stdlib
test
.buildkite-external-version -rw-r--r-- 5 bytes
.clang-format -rw-r--r-- 3.3 KB
.clangd -rw-r--r-- 114 bytes
.codecov.yml -rw-r--r-- 52 bytes
.git-blame-ignore-revs -rw-r--r-- 371 bytes
.gitattributes -rw-r--r-- 65 bytes
.gitignore -rw-r--r-- 571 bytes
.mailmap -rw-r--r-- 12.7 KB
CITATION.bib -rw-r--r-- 513 bytes
CITATION.cff -rw-r--r-- 940 bytes
CONTRIBUTING.md -rw-r--r-- 23.4 KB
HISTORY.md -rw-r--r-- 372.8 KB
LICENSE.md -rw-r--r-- 1.3 KB
Make.inc -rw-r--r-- 55.9 KB
Makefile -rw-r--r-- 30.2 KB
NEWS.md -rw-r--r-- 11.8 KB
README.md -rw-r--r-- 7.4 KB
THIRDPARTY.md -rw-r--r-- 3.9 KB
VERSION -rw-r--r-- 11 bytes
julia.spdx.json -rw-r--r-- 37.8 KB
pkgimage.mk -rw-r--r-- 7.1 KB
sysimage.mk -rw-r--r-- 4.2 KB
typos.toml -rw-r--r-- 78 bytes

README.md

back to top