mirror of
https://github.com/asciinema/asciinema.git
synced 2025-12-16 11:48:13 +01:00
Save session exit status in the recording file as "x" event
This commit is contained in:
@@ -51,6 +51,7 @@ pub enum EventData {
|
||||
Input(String),
|
||||
Resize(u16, u16),
|
||||
Marker(String),
|
||||
Exit(i32),
|
||||
Other(char, String),
|
||||
}
|
||||
|
||||
@@ -175,6 +176,13 @@ impl Event {
|
||||
data: EventData::Marker(label),
|
||||
}
|
||||
}
|
||||
|
||||
pub fn exit(time: u64, status: i32) -> Self {
|
||||
Event {
|
||||
time,
|
||||
data: EventData::Exit(status),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
pub fn limit_idle_time(
|
||||
|
||||
Reference in New Issue
Block a user