summaryrefslogtreecommitdiff
path: root/src/apprt/embedded.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/apprt/embedded.zig')
-rw-r--r--src/apprt/embedded.zig8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/apprt/embedded.zig b/src/apprt/embedded.zig
index bd1ffd460..e4961ac49 100644
--- a/src/apprt/embedded.zig
+++ b/src/apprt/embedded.zig
@@ -447,6 +447,9 @@ pub const Surface = struct {
/// Input to send to the command after it is started.
initial_input: ?[*:0]const u8 = null,
+
+ /// Wait after the command exits
+ wait_after_command: bool = false,
};
pub fn init(self: *Surface, app: *App, opts: Options) !void {
@@ -540,6 +543,11 @@ pub const Surface = struct {
);
}
+ // Wait after command
+ if (opts.wait_after_command) {
+ config.@"wait-after-command" = true;
+ }
+
// Initialize our surface right away. We're given a view that is
// ready to use.
try self.core_surface.init(