Skip to content

gh-155432: redraw PyREPL after SIGCONT - #155662

Open
BHUVANSH855 wants to merge 4 commits into
python:mainfrom
BHUVANSH855:fix-155432-repl-sigcont-prompt
Open

BHUVANSH855 wants to merge 4 commits into
python:mainfrom
BHUVANSH855:fix-155432-repl-sigcont-prompt

Conversation

@BHUVANSH855

@BHUVANSH855 BHUVANSH855 commented Aug 13, 2026 •

Copy link
Copy Markdown
Contributor

gh-155432: Re-print the PyREPL prompt when the process is resumed after Ctrl-Z.

After a suspended PyREPL is resumed with fg, the terminal is restored but the prompt is not redrawn until another input event causes a refresh.

This change queues the existing resize event from the SIGCONT handler so the normal PyREPL refresh path redraws the prompt.

A regression test verifies that the prompt is restored after processing the queued event.

Closes issue: gh-155432

Comment thread Lib/test/test_pyrepl/test_unix_console.py Outdated
Comment thread Lib/test/test_pyrepl/test_unix_console.py Outdated
@bedevere-app bedevere-app Bot added the type-feature A feature request or enhancement label Oct 7, 2026
@BHUVANSH855
BHUVANSH855 requested a review from pablogsal October 7, 2026 20:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting review type-feature A feature request or enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants