Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed cell width issues when using ANSI color codes. #79

Merged
merged 2 commits into from
Aug 9, 2018

Commits on May 18, 2018

  1. Fixed cell width issues when using ANSI color codes.

    This commit adds a `utils::display_width` function, which is just a wrapper
    around `UnicodeWidthStr::width` which also takes ANSI color codes into account.
    
    This is required when creating cells from strings which are already colored
    using ANSI color codes (instead of coloring the cells using styles). Since
    color codes are of the form \u{1b}[ ... m, but UnicodeWidthStr::width only
    takes the first \u{1b} into account, this would create cell width issues.
    Romain committed May 18, 2018
    Configuration menu
    Copy the full SHA
    149f0fd View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    20cd163 View commit details
    Browse the repository at this point in the history