Handle long lines in terminal pager

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

Nobody has claimed this yet.

Assessment

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

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.

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.

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

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.

More from QuantStack/git2cpp

All issues in QuantStack/git2cpp

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.