Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

default to 256 color with julia1.5.3 and later on windows #250

Merged
merged 3 commits into from
Mar 8, 2023

Conversation

MarcMush
Copy link
Contributor

@MarcMush MarcMush commented Oct 4, 2021

a more thorough check would be better but I guess this would be the job of Crayons.jl (ref KristofferC/Crayons.jl#15)

based on my testing, support is here starting from julia 1.5.3, even though it only appears in the 1.6 NEWS (PR is not linked, I don't know where exactly it was fixed)

@codecov-commenter
Copy link

Codecov Report

Merging #250 (131f0f9) into master (786e947) will increase coverage by 0.18%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #250      +/-   ##
==========================================
+ Coverage   19.28%   19.47%   +0.18%     
==========================================
  Files          12       12              
  Lines         866      868       +2     
==========================================
+ Hits          167      169       +2     
  Misses        699      699              
Impacted Files Coverage Δ
src/OhMyREPL.jl 14.63% <ø> (ø)
src/passes/RainbowBrackets.jl 100.00% <ø> (ø)
src/passes/SyntaxHighlighter.jl 43.58% <ø> (ø)
src/repl_pass.jl 58.94% <0.00%> (+0.88%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 786e947...131f0f9. Read the comment docs.

@MarcMush
Copy link
Contributor Author

@KristofferC is this something we want ? (I would say yes)

@KristofferC
Copy link
Owner

Sorry for the slow response here.

Have you tried this with CMD.exe on Windows? Does it work well? I thought that only supported 16 colors. But maybe we shouldn't optimize for the worse terminal...

@MarcMush
Copy link
Contributor Author

MarcMush commented Mar 8, 2023

yes!
even 24bit colors seem to work
image

@MarcMush
Copy link
Contributor Author

MarcMush commented Mar 8, 2023

also, that's why I added the new variable SUPPORTS_256_COLORS, to easily exclude under other conditions

@KristofferC KristofferC merged commit 12a6b77 into KristofferC:master Mar 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants