Skip to content

Missing the '=' and '>' control codes #141

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
kfreezen opened this issue Jan 15, 2021 · 3 comments · May be fixed by #193
Open

Missing the '=' and '>' control codes #141

kfreezen opened this issue Jan 15, 2021 · 3 comments · May be fixed by #193

Comments

@kfreezen
Copy link

I ran across this bug while using pyte to strip control codes from output for an expectation script. The two codes are

  • DECKPAM - Set alternate keypad mode
  • DECKPNM - Set alternate numeric keypad mode

I suspect my terminal inserts the DECKPAM code because I use a non-QWERTY keyboard layout.

@deathaxe
Copy link
Contributor

This issue affects applications interacting with FISH Shell 4.0+, which sends \x1b[=0u and \x1b[=5u sequences by default.

related with: fish-shell/fish-shell#11054

implementation details: https://sw.kovidgoyal.net/kitty/keyboard-protocol/

It causes Terminus package for Sublime Text to display misterious 0u and 5u characters in terminal output.

see: https://forum.sublimetext.com/t/latest-dev-builds-broke-terminus-with-fish-shell/75587/6

@superbobry
Copy link
Collaborator

Feel free to send a PR adding them.

@deathaxe deathaxe linked a pull request Apr 18, 2025 that will close this issue
@deathaxe
Copy link
Contributor

It turns out alternative keyboard modes being unrelated with keypad mode escape sequences.

While keypad mode is controlled via ESC = and ESC >, keyboard modes use CSI =, CSI < and CSI >.

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 a pull request may close this issue.

3 participants