diff options
author | Christian Duerr <contact@christianduerr.com> | 2025-01-09 10:02:20 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-01-09 10:02:20 +0000 |
commit | 8ab406d3fd51620a1ded910bc89fc02a2bcb838a (patch) | |
tree | 058bce1892024f8d7f5bb7dd38057226f001c413 /alacritty_terminal | |
parent | 8833551b0da3fdace94e1e6c07c6f57f45d9065e (diff) | |
download | r-alacritty-8ab406d3fd51620a1ded910bc89fc02a2bcb838a.tar.gz r-alacritty-8ab406d3fd51620a1ded910bc89fc02a2bcb838a.tar.bz2 r-alacritty-8ab406d3fd51620a1ded910bc89fc02a2bcb838a.zip |
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.
Diffstat (limited to 'alacritty_terminal')
-rw-r--r-- | alacritty_terminal/Cargo.toml | 4 | ||||
-rw-r--r-- | alacritty_terminal/src/event_loop.rs | 6 | ||||
-rw-r--r-- | alacritty_terminal/tests/ref.rs | 4 |
3 files changed, 5 insertions, 9 deletions
diff --git a/alacritty_terminal/Cargo.toml b/alacritty_terminal/Cargo.toml index 53e0be10..a5c8e1ae 100644 --- a/alacritty_terminal/Cargo.toml +++ b/alacritty_terminal/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "alacritty_terminal" -version = "0.24.3-dev" +version = "0.25.0-dev" authors = ["Christian Duerr <contact@christianduerr.com>", "Joe Wilm <joe@jwilm.com>"] license = "Apache-2.0" description = "Library for writing terminal emulators" @@ -24,7 +24,7 @@ parking_lot = "0.12.0" polling = "3.0.0" regex-automata = "0.4.3" 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 } [target.'cfg(unix)'.dependencies] diff --git a/alacritty_terminal/src/event_loop.rs b/alacritty_terminal/src/event_loop.rs index 62dd7440..2b78f853 100644 --- a/alacritty_terminal/src/event_loop.rs +++ b/alacritty_terminal/src/event_loop.rs @@ -17,8 +17,8 @@ use polling::{Event as PollingEvent, Events, PollMode}; use crate::event::{self, Event, EventListener, WindowSize}; use crate::sync::FairMutex; use crate::term::Term; -use crate::vte::ansi; use crate::{thread, tty}; +use vte::ansi; /// Max bytes to read from the PTY before forced terminal synchronization. pub(crate) const READ_BUFFER_SIZE: usize = 0x10_0000; @@ -151,9 +151,7 @@ where } // Parse the incoming bytes. - for byte in &buf[..unprocessed] { - state.parser.advance(&mut **terminal, *byte); - } + state.parser.advance(&mut **terminal, &buf[..unprocessed]); processed += unprocessed; unprocessed = 0; diff --git a/alacritty_terminal/tests/ref.rs b/alacritty_terminal/tests/ref.rs index 1f992941..454f2e5d 100644 --- a/alacritty_terminal/tests/ref.rs +++ b/alacritty_terminal/tests/ref.rs @@ -112,9 +112,7 @@ fn ref_test(dir: &Path) { let mut terminal = Term::new(options, &size, Mock); let mut parser: ansi::Processor = ansi::Processor::new(); - for byte in recording { - parser.advance(&mut terminal, byte); - } + parser.advance(&mut terminal, &recording); // Truncate invisible lines from the grid. let mut term_grid = terminal.grid().clone(); |