mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-16 08:46:08 +03:00
30 lines
707 B
Zig
30 lines
707 B
Zig
const std = @import("std");
|
|
const glfw = @import("glfw");
|
|
|
|
const App = @import("App.zig");
|
|
|
|
pub fn main() !void {
|
|
var general_purpose_allocator = std.heap.GeneralPurposeAllocator(.{}){};
|
|
const gpa = general_purpose_allocator.allocator();
|
|
defer _ = general_purpose_allocator.deinit();
|
|
|
|
// Initialize glfw
|
|
try glfw.init(.{});
|
|
defer glfw.terminate();
|
|
|
|
// Run our app
|
|
var app = try App.init(gpa);
|
|
defer app.deinit();
|
|
try app.run();
|
|
}
|
|
|
|
test {
|
|
_ = @import("Atlas.zig");
|
|
_ = @import("FontAtlas.zig");
|
|
_ = @import("Grid.zig");
|
|
_ = @import("Pty.zig");
|
|
_ = @import("Command.zig");
|
|
_ = @import("TempDir.zig");
|
|
_ = @import("terminal/Terminal.zig");
|
|
}
|