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

Console output area does not support all console color codes #45

Open
barafael opened this issue Sep 16, 2022 · 2 comments
Open

Console output area does not support all console color codes #45

barafael opened this issue Sep 16, 2022 · 2 comments

Comments

@barafael
Copy link
Contributor

I was trying klask with this project:
https://github.com/mazznoer/gradient-rs
(I thought maybe it would make for a good showcase for this klask).

And the main window looks great as expected:

image

I have checked the list-presets option there. The output looks quite funny though:

image

In my terminal, it looks like this:

image

I'm not sure this is even in scope for klask, so just FYI :)

@barafael
Copy link
Contributor Author

For reference, this is the output file generated by running gradient-rs --list-presets:
presets.txt

@MichalGniadek
Copy link
Owner

MichalGniadek commented Sep 21, 2022

Interesting... I will have to check if it breaks during cansi text categorization, or during egui display, or maybe even something else.

EDIT: I checked, and it does break on cansi. Interestingly, gradient-rs uses handwritten ansi sequences and not some other more popular crate. I wonder if they are using some more exotic sequences and that's why it breaks. Ansi seems to be a big pile of edge cases and non-standard behavior.

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

No branches or pull requests

2 participants