mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-06-03 18:34:50 +00:00
core: add 'command finished' notifications
Fixes #8991 Uses OSC 133 esc sequences to keep track of how long commands take to execute. If the user chooses, commands that take longer than a user specified limit will trigger a notification. The user can choose between a bell notification or a desktop notification.
This commit is contained in:
@@ -96,6 +96,14 @@ pub const Message = union(enum) {
|
||||
/// Report the progress of an action using a GUI element
|
||||
progress_report: terminal.osc.Command.ProgressReport,
|
||||
|
||||
/// A command has started in the shell, start a timer.
|
||||
start_command_timer,
|
||||
|
||||
/// A command has finished in the shell, stop the timer and send out
|
||||
/// notifications as appropriate. The optional u8 is the exit code
|
||||
/// of the command.
|
||||
stop_command_timer: ?u8,
|
||||
|
||||
pub const ReportTitleStyle = enum {
|
||||
csi_21_t,
|
||||
|
||||
|
||||
Reference in New Issue
Block a user