mirror of
https://github.com/anomalyco/opentui.git
synced 2026-04-25 04:55:58 +03:00
[PR #532] [CLOSED] Add support for PuTTY ALT+arrow key sequences #1382
Labels
No labels
bug
core
documentation
feature
good first issue
help wanted
pull-request
question
react
solid
tmux
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/opentui#1382
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/anomalyco/opentui/pull/532
Author: @tobwen
Created: 1/16/2026
Status: ❌ Closed
Base:
main← Head:fix/putty-escape-sequence📝 Commits (1)
9e45a56Add support for PuTTY ALT+arrow key sequences📊 Changes
3 files changed (+81 additions, -0 deletions)
View changed files
📝
packages/core/src/lib/parse.keypress.test.ts(+54 -0)📝
packages/core/src/lib/parse.keypress.ts(+11 -0)📝
packages/core/src/lib/stdin-buffer.ts(+16 -0)📄 Description
Adds recognition for double ESC sequences generated by PuTTY terminal when ALT+arrow keys are pressed (format: ESC ESC [A-D).
Updates the keypress parser to properly identify these sequences and mark them with meta/option flags while ensuring regular arrow keys still work correctly.
Enhances terminal compatibility for users of PuTTY in default mode.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.