QuantStack / QuantStack/git2cpp

Handle long lines in terminal pager

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

Nobody has claimed this yet.

Dominant language
C++
Stars
6
Forks
5
Avg merge
4h 22m
Merged PRs (30d)
4

Description

Lines that are longer than the terminal width are not handled correctly in the terminal pager, which assumes they are just one line when written to the terminal whereas they will actually be more than one. This will need a calculation of the length of each line, ignoring ansi color codes.

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 at the terminal pager implementation and reproduce the problem with lines longer than the terminal width, including ANSI color codes. The work is done when the pager accounts for the displayed width of each line and handles long colored lines correctly.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.