console-rs / console-rs/console

Support cursor updating methods when term is redirected to file.

Open
#127 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Rust
Stars
1.2k
Forks
144
Avg merge
8h 24m
Merged PRs (30d)
4

Description

Currently, when term is redirected to a file, the content of file looks wired if some cursor operations are done. It contains some ANSI escape sequences defined in https://github.com/console-rs/console/blob/master/src/common_term.rs

A suite of cursor updating methods maybe also required for File.

Contributor guide

No contributing guide indexed for this repository

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 with the cursor-related definitions in src/common_term.rs and trace how output redirected to File is handled. Reproduce cursor operations with file output, then compare the resulting content with terminal output. Done means File supports the needed cursor updates without emitting unintended ANSI escape sequences.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
cli
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.