From 41dd733ca7123c9ac4bfc6c781697a660e95b052 Mon Sep 17 00:00:00 2001 From: Can Celik Date: Sat, 4 Apr 2026 19:22:04 +0300 Subject: feat: finish ghostty pane backend integration --- vendor/libghostty-vt/src/main_wasm.zig | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 vendor/libghostty-vt/src/main_wasm.zig (limited to 'vendor/libghostty-vt/src/main_wasm.zig') diff --git a/vendor/libghostty-vt/src/main_wasm.zig b/vendor/libghostty-vt/src/main_wasm.zig new file mode 100644 index 00000000..bffe5e4b --- /dev/null +++ b/vendor/libghostty-vt/src/main_wasm.zig @@ -0,0 +1,26 @@ +// This is the main file for the WASM module. The WASM module has to +// export a C ABI compatible API. +const std = @import("std"); +const builtin = @import("builtin"); + +comptime { + _ = @import("os/wasm.zig"); + _ = @import("font/main.zig"); + _ = @import("terminal/main.zig"); + _ = @import("config.zig").Wasm; + _ = @import("App.zig").Wasm; +} + +pub const std_options = struct { + // Set our log level. We try to get as much logging as possible but in + // ReleaseSmall mode where we're optimizing for space, we elevate the + // log level. + pub const log_level: std.log.Level = switch (builtin.mode) { + .Debug => .debug, + .ReleaseSmall => .warn, + else => .info, + }; + + // Set our log function + pub const logFn = @import("os/wasm/log.zig").log; +}; -- cgit v1.2.3