diff options
author | Ayose Cazorla <ayosec@gmail.com> | 2020-08-28 22:26:03 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-28 22:26:03 +0000 |
commit | cdf5e51e742d67d1b96940a5096210725a1e51e8 (patch) | |
tree | 4652f37d8a9c32d3da4670d8706c96158caf1d72 /alacritty/src | |
parent | ee2c5a6cdd6a07f18b99a50b9d2737bd8ea391c4 (diff) | |
download | r-alacritty-cdf5e51e742d67d1b96940a5096210725a1e51e8.tar.gz r-alacritty-cdf5e51e742d67d1b96940a5096210725a1e51e8.tar.bz2 r-alacritty-cdf5e51e742d67d1b96940a5096210725a1e51e8.zip |
Add escape to report text area size
This implements the escapes `CSI 14 t` and `CSI 18 t` which report the
text area size in pixels and characters.
Diffstat (limited to 'alacritty/src')
-rw-r--r-- | alacritty/src/display.rs | 2 | ||||
-rw-r--r-- | alacritty/src/input.rs | 2 | ||||
-rw-r--r-- | alacritty/src/main.rs | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/alacritty/src/display.rs b/alacritty/src/display.rs index d9dd6323..1ddcb636 100644 --- a/alacritty/src/display.rs +++ b/alacritty/src/display.rs @@ -427,7 +427,7 @@ impl Display { pty_resize_handle.on_resize(&pty_size); // Resize terminal. - terminal.resize(&pty_size); + terminal.resize(pty_size); // Resize renderer. let physical = PhysicalSize::new(self.size_info.width as u32, self.size_info.height as u32); diff --git a/alacritty/src/input.rs b/alacritty/src/input.rs index 63fc9377..351e164c 100644 --- a/alacritty/src/input.rs +++ b/alacritty/src/input.rs @@ -1295,7 +1295,7 @@ mod tests { let mut clipboard = Clipboard::new_nop(); - let mut terminal = Term::new(&cfg, &size, MockEventProxy); + let mut terminal = Term::new(&cfg, size, MockEventProxy); let mut mouse = Mouse::default(); mouse.click_state = $initial_state; diff --git a/alacritty/src/main.rs b/alacritty/src/main.rs index 838ce4d2..efd3e947 100644 --- a/alacritty/src/main.rs +++ b/alacritty/src/main.rs @@ -145,7 +145,7 @@ fn run( // This object contains all of the state about what's being displayed. It's // wrapped in a clonable mutex since both the I/O loop and display need to // access it. - let terminal = Term::new(&config, &display.size_info, event_proxy.clone()); + let terminal = Term::new(&config, display.size_info, event_proxy.clone()); let terminal = Arc::new(FairMutex::new(terminal)); // Create the PTY. |