Skip to content

Fix handling of Home/End keys in tmux#6047

Merged
willmcgugan merged 1 commit into
Textualize:mainfrom
Terrance-forks:tmux-home-end-keys
Aug 18, 2025
Merged

Fix handling of Home/End keys in tmux#6047
willmcgugan merged 1 commit into
Textualize:mainfrom
Terrance-forks:tmux-home-end-keys

Conversation

@Terrance

Copy link
Copy Markdown
Contributor

tmux emits \x1b[1~ and \x1b[4~ sequences for Home and End, which were defined in ANSI_SEQUENCES_KEYS but not in FUNCTIONAL_KEYS.

This fixes events like Key(key='\x01') to report the key name.


Fixes #6046.

Please review the following checklist.

  • Docstrings on all new or modified functions / classes
    • (none changed)
  • Updated documentation
  • Updated CHANGELOG.md (where appropriate)

tmux emits `\x1b[1~` and `\x1b[4~` sequences for Home and End, which
were defined in `ANSI_SEQUENCES_KEYS` but not in `FUNCTIONAL_KEYS`.

This fixes events like `Key(key='\x01')` to report the key name.

@willmcgugan willmcgugan left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

thanks

@willmcgugan willmcgugan merged commit 5c42ddd into Textualize:main Aug 18, 2025
23 checks passed
@Terrance Terrance deleted the tmux-home-end-keys branch August 18, 2025 22:29
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.

Home/End keys not recognised inside tmux

2 participants