[PR #366] [MERGED] fix: tilde-terminated CSI sequences #484

Closed
opened 2026-03-02 23:46:43 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/anomalyco/opentui/pull/366
Author: @melMass
Created: 11/30/2025
Status: Merged
Merged: 11/30/2025
Merged by: @kommander

Base: mainHead: fix-kittykb-tilde


📝 Commits (4)

  • 574a3a6 feat(keypress-kitty): add tilde key format support
  • 171652b test: 🚨 add kitty tilde keys with event types
  • 22cb498 refactor(kitty): 🔨 consolidate functional and tilde key parsing
  • 124446c Merge branch 'main' into fix-kittykb-tilde

📊 Changes

2 files changed (+104 additions, -18 deletions)

View changed files

📝 packages/core/src/lib/parse.keypress-kitty.test.ts (+53 -0)
📝 packages/core/src/lib/parse.keypress-kitty.ts (+51 -18)

📄 Description

Adds parsing for tilde-terminated CSI sequences with event types (CSI number;modifiers:event ~).

This enables press/repeat/release detection for PageUp, PageDown, Insert, Delete, Home, End, and F5-F12 keys which
use a different format than arrow keys and F1-F4.

Changes

  • Added tildeKeyMap for tilde key number → name mapping
  • Added parseKittyTildeKey() function
  • Added tests for tilde keys with modifiers and event types

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/anomalyco/opentui/pull/366 **Author:** [@melMass](https://github.com/melMass) **Created:** 11/30/2025 **Status:** ✅ Merged **Merged:** 11/30/2025 **Merged by:** [@kommander](https://github.com/kommander) **Base:** `main` ← **Head:** `fix-kittykb-tilde` --- ### 📝 Commits (4) - [`574a3a6`](https://github.com/anomalyco/opentui/commit/574a3a67cafb1f5de55b26db27e9a7e53f4bd1ad) feat(keypress-kitty): ✨ add tilde key format support - [`171652b`](https://github.com/anomalyco/opentui/commit/171652b58ad1d4442084f6d3dcdc20d6f425f10e) test: 🚨 add kitty tilde keys with event types - [`22cb498`](https://github.com/anomalyco/opentui/commit/22cb498749658ec3e7bf4e63b6ae116497618e8d) refactor(kitty): 🔨 consolidate functional and tilde key parsing - [`124446c`](https://github.com/anomalyco/opentui/commit/124446cbaab169a9b9ffa836d5020f0922738485) Merge branch 'main' into fix-kittykb-tilde ### 📊 Changes **2 files changed** (+104 additions, -18 deletions) <details> <summary>View changed files</summary> 📝 `packages/core/src/lib/parse.keypress-kitty.test.ts` (+53 -0) 📝 `packages/core/src/lib/parse.keypress-kitty.ts` (+51 -18) </details> ### 📄 Description Adds parsing for tilde-terminated CSI sequences with event types (`CSI number;modifiers:event ~`). This enables press/repeat/release detection for PageUp, PageDown, Insert, Delete, Home, End, and F5-F12 keys which use a different format than arrow keys and F1-F4. ## Changes - Added `tildeKeyMap` for tilde key number → name mapping - Added `parseKittyTildeKey()` function - Added tests for tilde keys with modifiers and event types --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-02 23:46:43 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/opentui#484
No description provided.