There have been a couple of attempts at this in the past, which had some usability warts in what I recall as an earlier, less useful set of features overall. Whether that was collective misunderstanding at the time, or things have gotten better since then, now is a good time to adopt the workspace dep syntax, because wezterm has many crates to keep on top of, and automation like dependabot can't see a lot of them. This will help to manage the versions of deps in wezterm centrally. Let's try this out in CI: the Cargo.lock changes here are minimal (eliminated a second version of base64 from one crate, terminal_size from another, and removed an explicit dep on serde_derive) so hopefully this sails through on !linux. closes: https://github.com/wezterm/wezterm/pull/6668
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/wezterm/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