aboutsummaryrefslogtreecommitdiff
path: root/alacritty_terminal/src/event.rs
diff options
context:
space:
mode:
authorKirill Bulatov <mail4score@gmail.com>2024-03-09 13:32:32 +0200
committerGitHub <noreply@github.com>2024-03-09 15:32:32 +0400
commitf5646ba352c809f78c55a9e1f6a5212aea787899 (patch)
treeb6cdcc0c2516f8f243f226f5dd1630762e7a9e3d /alacritty_terminal/src/event.rs
parent992011a4cd9a35f197acc0a0bd430d89a0d01013 (diff)
downloadalacritty-f5646ba352c809f78c55a9e1f6a5212aea787899.tar.gz
alacritty-f5646ba352c809f78c55a9e1f6a5212aea787899.zip
Send exit code events on child process exit
Fixes #7753.
Diffstat (limited to 'alacritty_terminal/src/event.rs')
-rw-r--r--alacritty_terminal/src/event.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/alacritty_terminal/src/event.rs b/alacritty_terminal/src/event.rs
index caa1e9d6..e17d41ea 100644
--- a/alacritty_terminal/src/event.rs
+++ b/alacritty_terminal/src/event.rs
@@ -52,6 +52,9 @@ pub enum Event {
/// Shutdown request.
Exit,
+
+ /// Child process exited with an error code.
+ ChildExit(i32),
}
impl Debug for Event {
@@ -69,6 +72,7 @@ impl Debug for Event {
Event::Wakeup => write!(f, "Wakeup"),
Event::Bell => write!(f, "Bell"),
Event::Exit => write!(f, "Exit"),
+ Event::ChildExit(code) => write!(f, "ChildExit({code})"),
}
}
}