aboutsummaryrefslogtreecommitdiff
path: root/vendor/libghostty-vt/src/main.zig
diff options
context:
space:
mode:
authorCan Celik <ogulcancelik@gmail.com>2026-04-04 19:22:04 +0300
committerCan Celik <ogulcancelik@gmail.com>2026-04-05 01:23:06 +0300
commit41dd733ca7123c9ac4bfc6c781697a660e95b052 (patch)
tree3fc91815ca139ef2e0b281bba0abda4ef15175f4 /vendor/libghostty-vt/src/main.zig
parent55c138263e190a1e79d4b997bfb9397306c0ec1f (diff)
feat: finish ghostty pane backend integration
Diffstat (limited to 'vendor/libghostty-vt/src/main.zig')
-rw-r--r--vendor/libghostty-vt/src/main.zig26
1 files changed, 26 insertions, 0 deletions
diff --git a/vendor/libghostty-vt/src/main.zig b/vendor/libghostty-vt/src/main.zig
new file mode 100644
index 00000000..b08e63dd
--- /dev/null
+++ b/vendor/libghostty-vt/src/main.zig
@@ -0,0 +1,26 @@
+const std = @import("std");
+const build_config = @import("build_config.zig");
+
+/// See build_config.ExeEntrypoint for why we do this.
+const entrypoint = switch (build_config.exe_entrypoint) {
+ .ghostty => @import("main_ghostty.zig"),
+ .helpgen => @import("helpgen.zig"),
+ .mdgen_ghostty_1 => @import("build/mdgen/main_ghostty_1.zig"),
+ .mdgen_ghostty_5 => @import("build/mdgen/main_ghostty_5.zig"),
+ .webgen_config => @import("build/webgen/main_config.zig"),
+ .webgen_actions => @import("build/webgen/main_actions.zig"),
+ .webgen_commands => @import("build/webgen/main_commands.zig"),
+};
+
+/// The main entrypoint for the program.
+pub const main = entrypoint.main;
+
+/// Standard options such as logger overrides.
+pub const std_options: std.Options = if (@hasDecl(entrypoint, "std_options"))
+ entrypoint.std_options
+else
+ .{};
+
+test {
+ _ = entrypoint;
+}