onepub-dev / onepub-dev/dcli

suppress ansi output for all terminal commands when ansi terminal not available.

Open
#147 4 comments 1 reaction 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.