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

[Bug] My Eyes! #109

Open
iacore opened this issue Oct 30, 2021 · 3 comments
Open

[Bug] My Eyes! #109

iacore opened this issue Oct 30, 2021 · 3 comments
Labels
bug Something isn't working feature request New feature or request
Projects

Comments

@iacore
Copy link

iacore commented Oct 30, 2021

Describe the bug
The colors! The horror!

To Reproduce

Try to run the following code with chaos my_eyes.kaos.

some compile error:

pretty c

image

syntax error:

bool a = true
bool a = true

image

my terminal palette:
image

Expected behavior
Please don't change the background color whatsoever. If you want emphasis, use italic, bold text, or colored text, or both!

This is how Rust does it:
image

Environment:

  • Chaos Language Version: 0.2.0
@iacore
Copy link
Author

iacore commented Oct 30, 2021

Also, chaos doesn't respect TERM at all. I can't find a way to turn it off.
My attempts:

env TERM=ansi chaos my_eyes.kaos
chaos my_eyes.kaos | cat

@mertyildiran
Copy link
Member

@locriacyber thank you so much for reporting the issue. Would you like to implement the fix? You just need to look at the places where \033[ occur. For example in these places:

fprintf(stderr, "\033[1;%sm", bg_color);

printf("\033[0;45m");

fprintf(stderr, "\033[1;45m");

@mertyildiran mertyildiran added bug Something isn't working feature request New feature or request labels Nov 1, 2021
@mertyildiran mertyildiran added this to To do in Chaos via automation Nov 1, 2021
@iacore
Copy link
Author

iacore commented Nov 8, 2021

I don't have time to implement this.

As a side note, you claim that Chaos has "zero cyclomatic complexity". Is this a joke language?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working feature request New feature or request
Projects
Chaos
  
To do
Development

No branches or pull requests

2 participants