Skip to content

Redraw after a terminal tab regains focus - #2108

Open
jw9829 wants to merge 1 commit into
prompt-toolkit:mainfrom
jw9829:fix-terminal-focus-redraw
Open

jw9829 wants to merge 1 commit into
prompt-toolkit:mainfrom
jw9829:fix-terminal-focus-redraw

Conversation

@jw9829

@jw9829 jw9829 commented Sep 27, 2026

Copy link
Copy Markdown

Fixes #2069. Some terminals repaint their saved screen when a tab regains focus but don't send a resize event, so prompt_toolkit keeps rendering against the old screen. Enable focus events on VT100 terminals and redraw the application when focus returns.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Ghost rendering / buffer drift on terminal tab switch (VTE/tmux)

1 participant