diff --git a/Cargo.lock b/Cargo.lock index 58f11a25..97ba99e3 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -33,9 +33,9 @@ checksum = "c08606f8c3cbf4ce6ec8e28fb0014a2c086708fe954eaa885384a6165172e7e8" [[package]] name = "beamterm-data" -version = "0.13.0" +version = "0.15.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d5a70ff46e4e31f7b921e7c1c527cb4086765eb2393dff52a1a67a7c71e199c0" +checksum = "d7927a4e9de1e0028f777ace6cd5cd5e8d7f87a5cfec44a4f8dc135f18bc1f0e" dependencies = [ "compact_str", "miniz_oxide", @@ -43,9 +43,9 @@ dependencies = [ [[package]] name = "beamterm-renderer" -version = "0.13.0" +version = "0.15.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "89eb957a01ba980c6cc8718ffc4186630e0e04306805be2e6dadec7294d795fb" +checksum = "7a0d1b38455b427293dffbb0eb970c91c04f8ab32cb47b3884ed46924fda5819" dependencies = [ "beamterm-data", "bitflags", @@ -64,9 +64,9 @@ dependencies = [ [[package]] name = "bitflags" -version = "2.10.0" +version = "2.11.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "812e12b5285cc515a9c72a5c1d3b6d46a19dac5acfef5265968c166106e31dd3" +checksum = "843867be96c8daad0d758b57df9392b6d8d271134fce549de6ce169ff98a92af" [[package]] name = "bitvec" diff --git a/Cargo.toml b/Cargo.toml index 6da57910..c0916abc 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -42,7 +42,7 @@ ratatui = { version = "0.30", default-features = false, features = ["all-widgets console_error_panic_hook = "0.1.7" thiserror = "2.0.18" bitvec = { version = "1.0.1", default-features = false, features = ["alloc", "std"] } -beamterm-renderer = "0.13.0" +beamterm-renderer = "0.15.0" unicode-width = "0.2.2" [dev-dependencies] diff --git a/examples/Cargo.toml b/examples/Cargo.toml index bd32d0c9..7e6808fe 100644 --- a/examples/Cargo.toml +++ b/examples/Cargo.toml @@ -26,11 +26,11 @@ exclude = [ ratzilla = { path = "../" } examples-shared = { path = "shared" } console_error_panic_hook = "0.1.7" -tachyonfx = { version = "0.22.0", default-features = false, features = ["web-time"] } +tachyonfx = { version = "0.23.0", default-features = false, features = ["wasm"] } web-time = "1.1.0" palette = "0.7.6" rand = { version = "0.9.2", default-features = false } -wasm-bindgen = "0.2.104" +wasm-bindgen = "0.2.108" wasm-bindgen-futures = "0.4.54" web-sys = "0.3.81" diff --git a/examples/clipboard/Cargo.toml b/examples/clipboard/Cargo.toml index 9730f711..89134553 100644 --- a/examples/clipboard/Cargo.toml +++ b/examples/clipboard/Cargo.toml @@ -7,7 +7,7 @@ publish = false [dependencies] color-eyre = "0.6.5" console_error_panic_hook.workspace = true -ratatui = { version = "0.30.0", default-features = false } +ratatui = { version = "0.30.0", default-features = false, features = ["layout-cache"] } ratzilla.workspace = true examples-shared.workspace = true wasm-bindgen.workspace = true diff --git a/examples/clipboard/src/main.rs b/examples/clipboard/src/main.rs index 70f186d5..6bdc33e6 100644 --- a/examples/clipboard/src/main.rs +++ b/examples/clipboard/src/main.rs @@ -7,15 +7,19 @@ use ratatui::{ Frame, Terminal, }; -use ratzilla::{ - event::{KeyCode, KeyEvent}, - WebRenderer, -}; +use ratzilla::{event::{KeyCode, KeyEvent}, SelectionMode, WebRenderer}; use examples_shared::backend::{BackendType, MultiBackendBuilder}; +use ratzilla::backend::webgl2::WebGl2BackendOptions; fn main() -> io::Result<()> { std::panic::set_hook(Box::new(console_error_panic_hook::hook)); + + let webgl2_options = WebGl2BackendOptions::new() + .enable_mouse_selection_with_mode(SelectionMode::Linear) + .measure_performance(true); + let terminal = MultiBackendBuilder::with_fallback(BackendType::Dom) + .webgl2_options(webgl2_options) .build_terminal()?; let state = Rc::new(App::default()); diff --git a/examples/demo/index.html b/examples/demo/index.html index 1d67f957..6b800cdd 100644 --- a/examples/demo/index.html +++ b/examples/demo/index.html @@ -5,7 +5,11 @@