1
0
Fork 0
mirror of https://github.com/alacritty/alacritty.git synced 2025-06-30 19:22:55 -04:00

Bump VTE to 0.14.0

Since this is a breaking change, it also bumps the alacritty_terminal
development version to 0.25.0-dev.
This commit is contained in:
Christian Duerr 2025-01-09 10:02:20 +00:00 committed by GitHub
parent 8833551b0d
commit 8ab406d3fd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 12 additions and 16 deletions

12
Cargo.lock generated
View file

@ -93,7 +93,7 @@ dependencies = [
[[package]] [[package]]
name = "alacritty_terminal" name = "alacritty_terminal"
version = "0.24.3-dev" version = "0.25.0-dev"
dependencies = [ dependencies = [
"base64", "base64",
"bitflags 2.6.0", "bitflags 2.6.0",
@ -2045,23 +2045,23 @@ dependencies = [
[[package]] [[package]]
name = "vte" name = "vte"
version = "0.13.1" version = "0.14.0"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9a0b683b20ef64071ff03745b14391751f6beab06a54347885459b77a3f2caa5" checksum = "5507b53f7756f79bdb968d038a8f8db570d88028aee3c3cdc20427a8fb3482f4"
dependencies = [ dependencies = [
"bitflags 2.6.0", "bitflags 2.6.0",
"cursor-icon", "cursor-icon",
"log", "log",
"memchr",
"serde", "serde",
"utf8parse",
"vte_generate_state_changes", "vte_generate_state_changes",
] ]
[[package]] [[package]]
name = "vte_generate_state_changes" name = "vte_generate_state_changes"
version = "0.1.2" version = "0.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2e369bee1b05d510a7b4ed645f5faa90619e05437111783ea5848f28d97d3c2e" checksum = "e658bbb246cd98d720db0b7553764f7e841e25d9ac0c9ecfbc09452dc95a8cce"
dependencies = [ dependencies = [
"proc-macro2", "proc-macro2",
"quote", "quote",

View file

@ -12,7 +12,7 @@ rust-version = "1.74.0"
[dependencies.alacritty_terminal] [dependencies.alacritty_terminal]
path = "../alacritty_terminal" path = "../alacritty_terminal"
version = "0.24.3-dev" version = "0.25.0-dev"
[dependencies.alacritty_config_derive] [dependencies.alacritty_config_derive]
path = "../alacritty_config_derive" path = "../alacritty_config_derive"

View file

@ -1,6 +1,6 @@
[package] [package]
name = "alacritty_terminal" name = "alacritty_terminal"
version = "0.24.3-dev" version = "0.25.0-dev"
authors = ["Christian Duerr <contact@christianduerr.com>", "Joe Wilm <joe@jwilm.com>"] authors = ["Christian Duerr <contact@christianduerr.com>", "Joe Wilm <joe@jwilm.com>"]
license = "Apache-2.0" license = "Apache-2.0"
description = "Library for writing terminal emulators" description = "Library for writing terminal emulators"
@ -24,7 +24,7 @@ parking_lot = "0.12.0"
polling = "3.0.0" polling = "3.0.0"
regex-automata = "0.4.3" regex-automata = "0.4.3"
unicode-width = "0.1" unicode-width = "0.1"
vte = { version = "0.13.0", default-features = false, features = ["ansi"] } vte = { version = "0.14.0", default-features = false, features = ["ansi"] }
serde = { version = "1", features = ["derive", "rc"], optional = true } serde = { version = "1", features = ["derive", "rc"], optional = true }
[target.'cfg(unix)'.dependencies] [target.'cfg(unix)'.dependencies]

View file

@ -17,8 +17,8 @@ use polling::{Event as PollingEvent, Events, PollMode};
use crate::event::{self, Event, EventListener, WindowSize}; use crate::event::{self, Event, EventListener, WindowSize};
use crate::sync::FairMutex; use crate::sync::FairMutex;
use crate::term::Term; use crate::term::Term;
use crate::vte::ansi;
use crate::{thread, tty}; use crate::{thread, tty};
use vte::ansi;
/// Max bytes to read from the PTY before forced terminal synchronization. /// Max bytes to read from the PTY before forced terminal synchronization.
pub(crate) const READ_BUFFER_SIZE: usize = 0x10_0000; pub(crate) const READ_BUFFER_SIZE: usize = 0x10_0000;
@ -151,9 +151,7 @@ where
} }
// Parse the incoming bytes. // Parse the incoming bytes.
for byte in &buf[..unprocessed] { state.parser.advance(&mut **terminal, &buf[..unprocessed]);
state.parser.advance(&mut **terminal, *byte);
}
processed += unprocessed; processed += unprocessed;
unprocessed = 0; unprocessed = 0;

View file

@ -112,9 +112,7 @@ fn ref_test(dir: &Path) {
let mut terminal = Term::new(options, &size, Mock); let mut terminal = Term::new(options, &size, Mock);
let mut parser: ansi::Processor = ansi::Processor::new(); let mut parser: ansi::Processor = ansi::Processor::new();
for byte in recording { parser.advance(&mut terminal, &recording);
parser.advance(&mut terminal, byte);
}
// Truncate invisible lines from the grid. // Truncate invisible lines from the grid.
let mut term_grid = terminal.grid().clone(); let mut term_grid = terminal.grid().clone();