Closed tmpm697 closed 5 months ago
Usually, there is an extra option to retain the escape sequences when piped into another command.
See: kubecolor/kubecolor - Dynamic tty support
KUBECOLOR_FORCE_COLORS=true kubecolor ... | fzf ...
# or
kubecolor --force-colors ... | fzf ...
# Enables colors automatically when outputting to the terminal; otherwise, it disables them.
command grep --color=auto '^foo' /usr/share/dict/words
command grep --color=auto '^foo' /usr/share/dict/words | fzf
# vs
# Always enables colorized output.
command grep --color=always '^foo' /usr/share/dict/words | fzf
Checklist
man fzf
)Output of
fzf --version
0.51.0
OS
Shell
Problem / Steps to reproduce
I have this:
expect color output of
kubecolor
preserved but in fact, the color is lost.