-
-
Notifications
You must be signed in to change notification settings - Fork 33.6k
Open
Labels
Description
Bug report
Bug description:
Providing screenshot because of colors:
More details:
The same code works on Linux Ubuntu LTS and both input() and print() are colored.
NOTE: \001 and \002 are necessary for preventing libreadline from breaking prompt on tab completion. However removing them fixes the problem with colors. Unfortunately I can't go without them because otherwise libreadline breaks prompt:
- https://stackoverflow.com/questions/31329952/colorized-readline-prompt-breaks-control-a
- https://wiki.hackzine.org/development/misc/readline-color-prompt.html
Thanks in advance,
Ivan Nikolskiy (@enty8080)
CPython versions tested on:
3.11
Operating systems tested on:
macOS