summaryrefslogtreecommitdiff
path: root/src/apprt/embedded.zig
diff options
context:
space:
mode:
authorJacob Sandlund <jacob@jacobsandlund.com>2025-09-01 01:34:03 -0400
committerJacob Sandlund <jacob@jacobsandlund.com>2025-09-01 01:34:03 -0400
commitc67f51f3eee62083dc34cdb8eae508a247aa3794 (patch)
treeea5fe0650a082bab7c207bc8ca510b59789f6a11 /src/apprt/embedded.zig
parent6d02da0317361851adfd8f61b0b67f61b2c34472 (diff)
parent5ef6412823f789d530dcba54705a533b2e6ce0a7 (diff)
Merge remote-tracking branch 'upstream/main' into jacob/uucode
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(