mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-04-19 05:50:27 +00:00
macos: address quick terminal basic functionality with new API
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user