You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Change 2a642a0 introduced a regression
where a prompt set by -P is converted to printable form before printing.
This breaks using escape sequences to affect the formatting
of prompt strings.
Now only filenames in a prompt are converted to printable form,
rather than the entire prompt (previously implemented
in 2cdb984).
related to #515
2a642a0 which fixes #503 breaks the ability to include escape sequences in prompts.
Steps to reproduce:
Run
echo hello | less -R -Ps$(printf '\e[41mred\e[m')
Expected result:
Prompt should be "red", colored red.
Actual result:
Prompt is "
ESC[41mredESC[m
".The text was updated successfully, but these errors were encountered: