-
Notifications
You must be signed in to change notification settings - Fork 39
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
When precompiling without a terminal support reset crayon string is blank #246
Comments
Thanks @ktdq ! Do you have any MWE so that I can test? |
Something along these lines:
I use ssh to precompile on a cluster, and there's no terminal... |
What is wrong with just hardcoding the string?
|
Hum, that will be difficult to reproduce in the CI. Maybe hardcoding the string is the only safe solution then. |
Just tried, hardcoding doesn't work when there's no terminal. You really want an empty string in this case otherwise you have extra escape codes in otherwise plain text output. |
The only safe way is to remove |
Ok, thanks. |
const _reset_crayon_str = string(_reset_crayon) is evaluated during precompilation of the package. But when there's no terminal support it becomes an empty string. When loaded afterwards with a proper terminal it fails to draw things correctly.
Need to ensure that the initialization of _reset_crayon_str occurs at runtime rather than at compile time.
The text was updated successfully, but these errors were encountered: