mirror of
https://github.com/wez/wezterm.git
synced 2024-11-23 23:21:08 +03:00
b7771feef6
Neither of these understand image protocols, and both are an additional processing layer between the application and wezterm. This commit detects and wraps OSC sequences in tmux's passthru sequence so that the data is passed on to wezterm rather than elided from the data stream. For image protocols in both tmux and conpty, work a little smarter and explicitly move the cursor position to the same location that wezterm would move it to. That prevents the display from being as mangled by tmux/conpty due to a diverging understanding of the cursor position. The logic isn't perfect, and can result in the x-coordinate being incorrect, and this won't work with the new --position argument either in its current state, without adding a lot of complexity to deal with scrolling and relative and absolute positioning handling. To facilitate that, a new termwiz Terminal trait method has been added to probe the terminal name, version, cell and pixel dimensions. It's not pretty. refs: https://github.com/wez/wezterm/issues/3624 refs: https://github.com/wez/wezterm/issues/3716
24 lines
611 B
TOML
24 lines
611 B
TOML
[package]
|
|
name = "color-funcs"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
|
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
|
|
|
[dependencies]
|
|
anyhow = "1.0"
|
|
config = { path = "../../config" }
|
|
csscolorparser = {version="0.6", features=["lab"]}
|
|
deltae = "0.3"
|
|
image = "0.24.6"
|
|
lazy_static = "1.4"
|
|
log = "0.4"
|
|
lru = "0.7"
|
|
luahelper = { path = "../../luahelper" }
|
|
plist = "1.3"
|
|
serde = {version="1.0", features=["derive"]}
|
|
serde_json = "1.0"
|
|
serde_yaml = "0.9"
|
|
wezterm-dynamic = { path = "../../wezterm-dynamic" }
|
|
wezterm-term = { path = "../../term", features=["use_serde"] }
|