5088c62954f49fabff974ef548a49146e7616bbe
For some definition of improve, at least. On Windows, ALT is basically reserved by the Window management layer for functions such as ALT-space, ALT-F4 and so on. Windows doesn't provide a method by which an application can test whether a given key would be processed by the default window procedure so we're in a bit of a bind in terms of allowing ALT+a keypress to do something meaningful in the terminal. What I've settled on for now is: On Windows only, if ALT is pressed, allow matching key assignments that include ALT to be matched. If there are no key assignments, then DON'T pass the key press to the active pane, and instead allow it to be passed to DefWindowProc. This allows ALT-space to be handled correctly, provided the user hasn't defined an ALT-space key assignment of their own. This may have some unforeseen consequences. For example, ALT-<number> is a readline binding that repeats an argument a number of times. This change "breaks" that, but the user can provide a key assignment to `SendString` the equivalent sequence to restore that behavior. I'm kindof hoping that no one notices, but I'm prepared to explicitly add default key assignments for that. The other aspect of this commit is that I now understand a bit better what a dead key is and how they should be handled. I've tested the behavior of wezterm with these changes and the behavior is consistent with a regular CMD window when I have the DEU keymap active. Specifically, using the on-screen keyboard, if I click `^` then click `e` wezterm will emit `ê`. If I click `^` then `^` then wezterm emits `^^`. refs: #275 refs: #296
Wez's Terminal
A GPU-accelerated cross-platform terminal emulator and multiplexer written by @wez and implemented in Rust
User facing home page at: https://wezfurlong.org/wezterm/
Screenshot of wezterm on macOS, running vim
Installation
https://wezfurlong.org/wezterm/installation.html
Getting help
This is a spare time project, so please bear with me. There are two channels for support:
- You can use the GitHub issue tracker to see if someone else has a similar issue, or to file a new one: https://github.com/wez/wezterm/issues
- There is a Matrix/Riot.im room for (potentially!) real time discussions; that is bridged from the original Gitter room.
The Matrix/Gitter room is probably better suited to questions than it is to bug reports, but don't be afraid to use whichever you are most comfortable using and we'll work it out.
Description
The agentic terminal: a WezTerm fork with LLeMbas built in
316 MiB
0 Stars
2 Watchers
0 Forks
Languages
Rust
97.7%
Python
1%
Shell
0.9%
Nix
0.2%
