Skip to content

gh-148228: Render REPL error overlays in brackets and non-bold red - #160008

Open
johnslavik wants to merge 2 commits into
python:mainfrom
johnslavik:repl-red-error-overlays
Open

johnslavik wants to merge 2 commits into
python:mainfrom
johnslavik:repl-red-error-overlays

Conversation

@johnslavik

@johnslavik johnslavik commented Oct 21, 2026 •

Copy link
Copy Markdown
Member

Render REPL error overlays as [ error message ], analogous to completion messages such as [ not unique ]. The brackets distinguish errors from stdout even when color is disabled. When color is enabled, the whole message uses non-bold red.

For example, ! nothing to yank becomes [ nothing to yank ].

@johnslavik

johnslavik commented Oct 21, 2026 •

Copy link
Copy Markdown
Member Author

Hmmm or maybe we should do [ error message ] analogous to [ not unique ]?
So that in no-color it's less likely to be confused with stdout.

@johnslavik johnslavik changed the title gh-148228: Render REPL error overlays in red without a prefix gh-148228: Render REPL error overlays in brackets and non-bold red Oct 21, 2026
@johnslavik

Copy link
Copy Markdown
Member Author

We're golden

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting review sprint type-feature A feature request or enhancement

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

1 participant