Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Grep-colorized output and ANSI escape sequences #440

@LorenzoCaresio

Description

@LorenzoCaresio

Hi folks,
I'm currently facing some issues while trying to display some grep-colorized output in the previewer.

Long story short: when displaying some text that got through grep --color=always the displayed output is broken (probably due to some ANSI escape sequences incorrectly interpreted).

The following is the same command executed on bash:
image

And this is what I get on LF:
image

  • As suggested here, [K has to be related to an erase function to clear the current line.
  • I'm currently running LF on Alacritty on Arch, but on a MacBook with macOs Catalina+Terminal the behavior is identical.
  • It is definitely something grep-related since an awk-based solution is displayed properly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions