1
1
mirror of https://github.com/wez/wezterm.git synced 2024-12-13 01:35:29 +03:00
wezterm/termwiz/Cargo.toml
Wez Furlong 23b4876d75 fix an issue with utf-8 in OSC sequences
I've noticed this off and on for a while, and thought it was something
fishy with my shell dotfiles.

Tracing through I found that the final byte in the "Face with head
bandage" emoji 🤕 U+1F915 was being interpreted as the MW control
code and causing the vt parser to jump out of the OSC state.

The solution for this is to hook up proper UTF-8 processing in the
same way that it is applied in the ground state.

Since we don't have enough bits to introduce new state values (we're
pretty tightly packed in the 16 bits available), I've introduced a
memory of the state to which the utf8 parser needs to return once
a complete sequence is detected.
2019-11-03 22:01:35 -08:00

59 lines
1.2 KiB
TOML

[package]
authors = ["Wez Furlong"]
name = "termwiz"
version = "0.4.0"
edition = "2018"
repository = "https://github.com/wez/wezterm"
description = "Terminal Wizardry for Unix and Windows"
license = "MIT"
documentation = "https://docs.rs/termwiz"
keywords = ["terminal", "readline", "console", "curses"]
readme = "README.md"
[dependencies]
base64 = "0.10"
bitflags = "1.0"
cassowary = "0.3"
derive_builder = "0.7"
failure = "0.1"
filedescriptor = "0.5"
fnv = "1.0"
image = "0.21"
libc = "0.2"
log = "0.4"
memmem = "0.1"
num = "0.2"
num-traits = "0.2"
ordered-float = "1.0"
palette = "0.4"
regex = "0.2"
semver = "0.9"
serde = {version="1.0", features = ["rc"]}
serde_derive = "1.0"
smallvec = "0.6"
terminfo = "0.6"
unicode-segmentation = "1.2"
unicode-width = "0.1"
vtparse = { version="0.1", path="../vtparse" }
[dev-dependencies]
varbincode = "0.1"
[dependencies.num-derive]
features = ["full-syntax"]
version = "0.2"
[target."cfg(unix)".dependencies]
signal-hook = "0.1"
termios = "0.3"
[target."cfg(windows)".dependencies.winapi]
features = [
"winbase",
"winerror",
"winuser",
"consoleapi",
"handleapi",
"fileapi",
"synchapi",
]
version = "0.3"