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

Unreadable console output in ssLocal on Windows #1838

Open
molor opened this issue Jan 8, 2025 · 3 comments
Open

Unreadable console output in ssLocal on Windows #1838

molor opened this issue Jan 8, 2025 · 3 comments

Comments

@molor
Copy link

molor commented Jan 8, 2025

Looks like ANSI escape/formatting codes doesn't work.

image

Running via batch file (ssLocal -c ssSettings.json) on Windows Server 2022.

Sure we can ignore this issue, but it's extremely inconvenient to read and understand something...
I hope you can fix it.

@database64128
Copy link
Contributor

You should switch to a proper modern terminal program like Windows Terminal. The legacy conhost should not be used for anything.

@molor
Copy link
Author

molor commented Jan 8, 2025

Server 2022 doesn't have Terminal (maybe 2025 have, I don't know), and iirc there's some other issues related to its installation (because "only Microsoft knows why Windows Terminal is only available on client OSes").

@zonyitoo
Copy link
Collaborator

zonyitoo commented Jan 8, 2025

// NOTE: ansi is enabled by default.
// Could be disabled by `NO_COLOR` environment variable.
// https://no-color.org/
if !std::io::stdout().is_terminal() {
builder = builder.with_ansi(false);
}

You could disable it by setting NO_COLOR environment variable.

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

3 participants