Skip to content
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

Work around Linux keycodes by mapping ^_ to ^7 #5

Merged
merged 1 commit into from
Jun 10, 2024
Merged

Conversation

qezz
Copy link
Owner

@qezz qezz commented Jun 10, 2024

On Linux terminal, keycodes for ^/, ^_, and ^7 are the same. The parsed key depends on the library that handles the input. In case of Zee, it uses Zi framework for terminal based applications, which uses crossterm library to get key events.

For more details, see crossterm issues:

To check if it reproduces on your machine, you can try

showkey --ascii

On Linux terminal, keycodes for `^/`, `^_`, and `^7` are the same. The
parsed key depends on the library that handles the input. In case of
Zee, it uses Zi framework for terminal based applications, which uses
crossterm library to get key events.

For more details, see crossterm issues:

- crossterm-rs/crossterm#540
- crossterm-rs/crossterm#685

To check if it reproduces on your machine, you can try

```
showkey --ascii
```

- Crossterm - https://github.com/crossterm-rs/crossterm
- Zi - https://github.com/mcobzarenco/zi
@qezz qezz merged commit 8dd6a52 into master Jun 10, 2024
1 check passed
@qezz qezz deleted the the-undo-bug branch June 10, 2024 21:11
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.

1 participant