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

Trying to fix the color on location info #2063

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

korken89
Copy link
Contributor

No description provided.

(true, false) => "{L} {s}\n└─ {m} @ {F}:{l}",
(true, true) => {
fileinfo.push_str("{t} {L} {s}\n");
fileinfo.push_str(&"└─ {m} @ {F}:{l}".dimmed());
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IIRC this won't work because the color information somehow gets lost when you go from ColoredString to String. I don't remember the details.

What you're trying to do should be supported by the defmt log formatter with this format string:

Suggested change
fileinfo.push_str(&"└─ {m} @ {F}:{l}".dimmed());
fileinfo.push_str(&"{└─ {m} @ {F}:{l}%dimmed}");

But the current version of defmt does not support this yet, we need a new release.

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.

None yet

2 participants