mirror of
https://github.com/wez/wezterm.git
synced 2024-11-27 12:23:46 +03:00
b35f3aa199
These aren't currently rendered, but the parser and model now support recognizing expanded underline sequences: ``` CSI 24 m -> No underline CSI 4 m -> Single underline CSI 21 m -> Double underline CSI 60 m -> Curly underline CSI 61 m -> Dotted underline CSI 62 m -> Dashed underline CSI 58 ; 2 ; R ; G ; B m -> set underline color to specified true color RGB CSI 58 ; 5 ; I m -> set underline color to palette index I (0-255) CSI 59 -> restore underline color to default ``` The Curly, Dotted and Dashed CSI codes are a wezterm assignment in the SGR space. This is by no means official; I just picked some numbers that were not used based on the xterm ctrl sequences. The color assignment codes 58 and 59 are prior art from Kitty. refs: https://github.com/wez/wezterm/issues/415 |
||
---|---|---|
.. | ||
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