macos: address quick terminal basic functionality with new API

This commit is contained in:
Mitchell Hashimoto
2025-06-07 13:07:05 -07:00
parent 20744f0482
commit 6e77a5a6ca
5 changed files with 62 additions and 12 deletions

View File

@@ -1359,6 +1359,11 @@ pub const CAPI = struct {
return surface.core_surface.needsConfirmQuit();
}
/// Returns true if the surface process has exited.
export fn ghostty_surface_process_exited(surface: *Surface) bool {
return surface.core_surface.child_exited;
}
/// Returns true if the surface has a selection.
export fn ghostty_surface_has_selection(surface: *Surface) bool {
return surface.core_surface.hasSelection();