Colorful output with user defined tyext pattern #21138

Closed
opened 2026-01-31 07:34:14 +00:00 by claunia · 4 comments
Owner

Originally created by @SigmaStar on GitHub (Jan 26, 2024).

Description of the new feature/enhancement

I hope terminal can equipped with function that can colorized some text which user defined in settings.json.
For example in settings.json user can write some PCRE2 pattern like "ERROR \b\w+\b" and set the text color to red. Then as soon as ERROR something appeared on terminal, the terminal output the text in red color.

Proposed technical implementation details (optional)

maybe add some hooks on output? But will this cause performance impact for user?

Originally created by @SigmaStar on GitHub (Jan 26, 2024). # Description of the new feature/enhancement I hope terminal can equipped with function that can colorized some text which user defined in settings.json. For example in settings.json user can write some PCRE2 pattern like "ERROR \b\w+\b" and set the text color to red. Then as soon as ERROR something appeared on terminal, the terminal output the text in red color. # Proposed technical implementation details (optional) maybe add some hooks on output? But will this cause performance impact for user?
claunia added the Issue-FeatureNeeds-TriageNeeds-Tag-FixNeeds-Attention labels 2026-01-31 07:34:14 +00:00
Author
Owner

@SigmaStar commented on GitHub (Jan 26, 2024):

Maybe we can reuse the function " auto detect url"?

@SigmaStar commented on GitHub (Jan 26, 2024): Maybe we can reuse the function " auto detect url"?
Author
Owner

@lhecker commented on GitHub (Jan 26, 2024):

We're tracking something like this over at #5916. Please let me know if your idea is different from what's described there. Otherwise, I believe we can close this issue as a duplicate. 🙂

@lhecker commented on GitHub (Jan 26, 2024): We're tracking something like this over at #5916. Please let me know if your idea is different from what's described there. Otherwise, I believe we can close this issue as a duplicate. 🙂
Author
Owner

@SigmaStar commented on GitHub (Jan 27, 2024):

oh, yes! this is a duplicated issue.

@SigmaStar commented on GitHub (Jan 27, 2024): oh, yes! this is a duplicated issue.
Author
Owner

@SigmaStar commented on GitHub (Jan 27, 2024):

I've closed

@SigmaStar commented on GitHub (Jan 27, 2024): I've closed
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#21138