mirror of
https://github.com/wez/wezterm.git
synced 2024-12-25 06:12:16 +03:00
7fb22d6968
I've had a FIXME in here for a while to check the positioning, but never got around to it. The onefetch folks have an app that does care about this, so it's time to resolve it! This commit adjusts the cursor position for the iterm case (not the sixel case), and results in both: running in xterm: ``` onefetch --image ~/Downloads/squirrel.png ``` running in wezterm: ``` TERM_PROGRAM=iTerm.app onefetch --image ~/Downloads/squirrel.png --image-backend=iterm ``` ``` onefetch --image ~/Downloads/squirrel.png --image-backend=sixel ``` showing consistent positioning. refs: https://github.com/wez/wezterm/issues/317 refs: https://github.com/o2sh/onefetch/pull/305 |
||
---|---|---|
.. | ||
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