Skip to content

Conversation

@joshka
Copy link
Collaborator

@joshka joshka commented Nov 14, 2025

When enabled, scrolling while on the alternate screen sends cursor-up / down key events instead of moving the normal scrollback buffer.

See https://invisible-island.net/xterm/manpage/xterm.html#VT100-Widget-Resources:alternateScroll

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds support for the alternate scroll mode feature in terminals, which allows scrolling operations on the alternate screen to send cursor key events instead of scrolling the normal scrollback buffer.

  • Introduces EnableAlternateScrollMode and DisableAlternateScrollMode commands following the xterm specification
  • Implements ANSI escape sequences CSI ?1007h and CSI ?1007l respectively
  • Provides comprehensive documentation with examples for both commands

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

When enabled, scrolling while on the alternate screen sends cursor-up /
down key events instead of moving the normal scrollback buffer.

See https://invisible-island.net/xterm/manpage/xterm.html#VT100-Widget-Resources:alternateScroll
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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.

2 participants