Skip to content

Update to tcell v3#5562

Merged
stefanhaller merged 8 commits into
masterfrom
update-to-tcell-v3
Apr 30, 2026
Merged

Update to tcell v3#5562
stefanhaller merged 8 commits into
masterfrom
update-to-tcell-v3

Conversation

@stefanhaller

Copy link
Copy Markdown
Collaborator

Refactor code to introduce a Key type in gocui that bundles the keyName and a rune, so that we don't have to pass these around separately everywhere.

This, and updating tcell to v3 lays the ground for supporting more keybindings in terminals that support the CSIu keyboard protocol.

Should have been deleted in b955002.
The wrappedHandler business is no longer needed (and maybe never was).
It's a no-op. (I think this might not have been the case in the past, where
Label() was needed to "normalize" a keybinding or something.)
This is to free up the name Key for a type that can be either a KeyName or a
rune (or later a string when we upgrade to tcell v3).
This bundles the keyName and a rune, so that we don't have to pass these around
separately everywhere. This should make it easier to swap out the rune for a
string when we upgrade to tcell v3.
@stefanhaller stefanhaller added the maintenance For refactorings, CI changes, tests, version bumping, etc label Apr 30, 2026
@stefanhaller stefanhaller enabled auto-merge April 30, 2026 20:20
@stefanhaller stefanhaller merged commit 69635f3 into master Apr 30, 2026
14 checks passed
@stefanhaller stefanhaller deleted the update-to-tcell-v3 branch April 30, 2026 20:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintenance For refactorings, CI changes, tests, version bumping, etc

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant