suppress ansi output for all terminal commands when ansi terminal not available.
Nobody has claimed this yet.
- Dominant language
- Dart
- Stars
- 265
- Forks
- 30
- PR merge metrics
- No merged PRs in 30d
Description
We already have some code that suppresses ansi output when running on a none ansi device.
We need to review the terminal library to see if we can do further suppression so that the code 'mostly' works when on non-ansi devices.
With methods like write we could try to track row movements and if the row has moved since the last write then we add a newline before doing the next output.
The problem with this idea is that we would possible need to 'intercept' calls to print so we know when it has changed the row.
things to ponder.
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.
Research direction
Start by reviewing the terminal library's existing ANSI suppression and the write and print output paths. Determine how row movement is tracked and where non-ANSI devices are identified before assessing whether output calls can be intercepted. Done means terminal commands suppress ANSI output and remain mostly usable on non-ANSI devices, including appropriate newline handling.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- dart
- Domain
- cli
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100