From f245cdc66721c3cea7551fca715f1ea04cd6bdc2 Mon Sep 17 00:00:00 2001 From: Tim Culverhouse Date: Thu, 2 Jul 2026 15:38:23 -0500 Subject: [PATCH] lib-vt: expose selection gesture to Zig Selection gestures are already part of the libghostty-vt C API, but the native Zig module did not re-export the underlying terminal type. Zig consumers that implement mouse selection had to reach into terminal internals instead of using @import("ghostty-vt"). Re-export SelectionGesture from lib_vt alongside the other terminal selection and screen types. --- src/lib_vt.zig | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib_vt.zig b/src/lib_vt.zig index 6d4406e88..97dbbba80 100644 --- a/src/lib_vt.zig +++ b/src/lib_vt.zig @@ -71,6 +71,7 @@ pub const RenderState = terminal.RenderState; pub const Screen = terminal.Screen; pub const ScreenSet = terminal.ScreenSet; pub const Selection = terminal.Selection; +pub const SelectionGesture = terminal.SelectionGesture; pub const size_report = terminal.size_report; pub const SizeReportStyle = terminal.SizeReportStyle; pub const StringMap = terminal.StringMap;