Support stripping of dangerous ANSI codes
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Stale
- Domain
- cli
Research direction
Start by reading the existing StripStream behavior and the requested SanitizeStream mode described here. Establish which formatting sequences remain allowed and which dangerous actions, such as terminal-title changes, must be removed; done means preserving color and similar text formatting while stripping those actions.
Written by the indexing model from the issue text.
Description
anstream currently has two modes: Printing all ANSI sequences, and stripping all ANSI sequences (StripStream). Would it be possible to add a third mode SanitizeStream, that allows color and similar text formatting streams, but strips potentially dangerous actions such as setting the terminal title?
This request is due to https://github.com/tokio-rs/tracing/issues/3378, where tracing now allows either escaping ANSI (not stripping, leading to bad output with strange characters), or turning off this validation completely. Does this fit in the scope of anstyle?
- Dominant language
- HTML
- Stars
- 171
- Forks
- 44
- Avg merge
- 2h 34m
- Merged PRs (30d)
- 6
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from rust-cli/anstyle
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
A-stream
Difficulty 3/5 1-2 days Newbie friendliness 58/100
-
A-stream C-bug S-triage
Difficulty 4/5 3-5 days Newbie friendliness 48/100
-
Difficulty 3/5 1-2 days Newbie friendliness 52/100
-
Difficulty 4/5 3-5 days Newbie friendliness 42/100
All issues in rust-cli/anstyle
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
BasedHardware/omi#15662 · 1 comment ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
alexgorbatchev/dotfiles#107 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
from:qa priority:P2 reliability tech-debt
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
spec-kitty/spec-kitty#4874 ·
-
0. Needs triage bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
nextcloud/fulltextsearch#1011 ·