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
I piped the output through sed 's/\x1b\[[0-9;]*m//g' to remove the escape sequences. If you need to remove the name alias between parenthesis (as I did), you might want to use sed 's/\x1b\[[0-9;]*m//g;s/(.*)//g' instead.
Currently, ponysay prints some names in bold when called with -l, +l, -L, -A, +A.
It becomes a problem when trying to post-process the output, for example build a list of ponies to choose from.
For example, I like to link ponysay instead of cowsay, and enjoy it when using Ansible, but that restricts me to the non-bold pony names.
That's because Ansible calls "cowsay -l" to get list of cows and filter using a whitelist, and it can't remove the escape codes :
https://github.com/ansible/ansible/blob/e9b0a4ccb42854329b33b06624379c6122b67bd7/lib/ansible/utils/display.py#L99
The text was updated successfully, but these errors were encountered: