vaxis: export Parser, Tty and getWinsize for applications that cannot use Loop

This commit is contained in:
CJ van den Berg 2024-05-05 21:17:03 +02:00 committed by Tim Culverhouse
parent cde85103a1
commit 8819e192cc
2 changed files with 4 additions and 2 deletions

View file

@ -278,7 +278,7 @@ pub const Winsize = struct {
y_pixel: usize,
};
fn getWinsize(fd: posix.fd_t) !Winsize {
pub fn getWinsize(fd: posix.fd_t) !Winsize {
var winsize = posix.winsize{
.ws_row = 0,
.ws_col = 0,

View file

@ -14,8 +14,10 @@ pub const Image = @import("Image.zig");
pub const Mouse = @import("Mouse.zig");
pub const Screen = @import("Screen.zig");
pub const AllocatingScreen = @import("InternalScreen.zig");
pub const Winsize = @import("Tty.zig").Winsize;
pub const Parser = @import("Parser.zig");
pub const Tty = @import("Tty.zig");
pub const Window = @import("Window.zig");
pub const Winsize = Tty.Winsize;
pub const widgets = @import("widgets.zig");
pub const gwidth = @import("gwidth.zig");