mirror of
https://github.com/wez/wezterm.git
synced 2024-12-24 22:01:47 +03:00
ce23ee9eb8
This commit causes the terminal to emit win32-input-mode encoded key up and down events for a limited subset of keys When win32-input-mode is enabled. We limit them to keys where we know the VK key code equivalent, and where those keys are either not representable (eg: modifier only key events), or may generate ambiguous output (eg: CTRL-SPACE in different keyboard layouts). However, in my experiments, modifier only key presses confuse powershell and cause it to emit `@`, so I've disabled that in the code for now. refs: https://github.com/wez/wezterm/issues/318 refs: https://github.com/wez/wezterm/issues/1509 refs: https://github.com/wez/wezterm/issues/1510 |
||
---|---|---|
.. | ||
src | ||
Cargo.toml | ||
README.md |
wezterm-term
This crate provides the core of the virtual terminal emulator implementation used by wezterm. The home for this crate is in the wezterm repo and development is tracked at https://github.com/wez/wezterm/.
It is full featured, providing terminal escape sequence parsing, keyboard and mouse input encoding, a model for the screen cells including scrollback, sixel and iTerm2 image support, OSC 8 Hyperlinks and a wide range of terminal cell attributes.
This crate does not provide any kind of gui, nor does it directly
manage a PTY; you provide a std::io::Write
implementation that
could connect to a PTY, and supply bytes to the model via the
advance_bytes
method.
The entrypoint to the crate is the Terminal struct.
License: MIT