aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--alacritty_terminal/src/term/mod.rs11
1 files changed, 11 insertions, 0 deletions
diff --git a/alacritty_terminal/src/term/mod.rs b/alacritty_terminal/src/term/mod.rs
index 84945f52..54068504 100644
--- a/alacritty_terminal/src/term/mod.rs
+++ b/alacritty_terminal/src/term/mod.rs
@@ -1,6 +1,7 @@
//! Exports the `Term` type which is a high-level API for the Grid.
use std::ops::{Index, IndexMut, Range};
+use std::process::Command;
use std::sync::Arc;
use std::{cmp, mem, ptr, slice, str};
@@ -1747,6 +1748,16 @@ impl<T: EventListener> Handler for Term<T> {
}
#[inline]
+ fn extension_script(&mut self, args: &Vec<String>) {
+ match Command::new("/home/rahm/.local/bin/alacritty-ext.sh").args(args).output() {
+ Ok(_) => {},
+ Err(v) => {
+ println!("Failed to run alacritty command. {}", v);
+ },
+ }
+ }
+
+ #[inline]
fn clear_screen(&mut self, mode: ansi::ClearMode) {
trace!("Clearing screen: {:?}", mode);
let bg = self.grid.cursor.template.bg;