Skip to content

macOS Big Sur input() removes colors #113533

Open
@enty8080

Description

@enty8080

Bug report

Bug description:

Providing screenshot because of colors:

Screenshot 2023-12-28 at 03 53 02

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:

Thanks in advance,
Ivan Nikolskiy (@enty8080)

CPython versions tested on:

3.11

Operating systems tested on:

macOS

Metadata

Metadata

Assignees

No one assigned

    Labels

    OS-mactype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions