Skip to content

feat: Add F6 shortcut to force terminal redraw#61

Open
thoraxe wants to merge 1 commit intovultuk:mainfrom
thoraxe:feature/terminal-redraw-shortcut
Open

feat: Add F6 shortcut to force terminal redraw#61
thoraxe wants to merge 1 commit intovultuk:mainfrom
thoraxe:feature/terminal-redraw-shortcut

Conversation

@thoraxe
Copy link

@thoraxe thoraxe commented Jan 20, 2026

Summary

Adds F6 keyboard shortcut to force a complete terminal redraw, fixing garbled display issues in xterm.js.

Problem

Terminal display can become garbled in certain situations. Users need a way to force a complete redraw.

Solution

  • Added document-level F6 key handler (not intercepted by xterm or browser)
  • Uses resize trick: temporarily shrinks terminal by 1 column, then restores
  • This forces xterm.js to completely re-render all content

Test plan

  • Press F6 when terminal is visible
  • Verify console shows 'Terminal redraw completed (F6)'
  • Verify display is refreshed

🤖 Generated with Claude Code

Adds F6 keyboard shortcut to force a complete terminal redraw.
This fixes garbled display issues that can occur in xterm.js.

The implementation uses a resize trick (shrink then restore) to force
xterm.js to completely re-render the terminal content.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@thoraxe thoraxe force-pushed the feature/terminal-redraw-shortcut branch from ae17df8 to b6c98d8 Compare January 20, 2026 22:09
@thoraxe thoraxe changed the title feat: Add Ctrl+Shift+L shortcut to force terminal redraw feat: Add F6 shortcut to force terminal redraw Jan 20, 2026
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.

1 participant