Skip to content

Feature request: return ansi colors on exit and in --listen mode #4728

@nkh

Description

@nkh

Checklist

  • I have read through the manual page (man fzf)
  • I have searched through the existing issues
  • For bug reports, I have checked if the bug is reproducible in the latest version of fzf

Output of fzf --version

0.70.0 (f0a2f5e)

OS

  • Linux
  • macOS
  • Windows
  • Etc.

Shell

  • bash
  • zsh
  • fish

Problem / Steps to reproduce

echo -e "$RED AAAA $RESET$BLUE AAAA $RESET" | fzf --ansi
  • above shows two lines, as I would expect, fzf shows the selected string on exit but without the ansi codes

  • same thing in --listen mode, this simplifies greatly the writing of the client

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions