vaxis: export Parser, Tty and getWinsize for applications that cannot use Loop
This commit is contained in:
parent
cde85103a1
commit
8819e192cc
2 changed files with 4 additions and 2 deletions
|
@ -278,7 +278,7 @@ pub const Winsize = struct {
|
||||||
y_pixel: usize,
|
y_pixel: usize,
|
||||||
};
|
};
|
||||||
|
|
||||||
fn getWinsize(fd: posix.fd_t) !Winsize {
|
pub fn getWinsize(fd: posix.fd_t) !Winsize {
|
||||||
var winsize = posix.winsize{
|
var winsize = posix.winsize{
|
||||||
.ws_row = 0,
|
.ws_row = 0,
|
||||||
.ws_col = 0,
|
.ws_col = 0,
|
||||||
|
|
|
@ -14,8 +14,10 @@ pub const Image = @import("Image.zig");
|
||||||
pub const Mouse = @import("Mouse.zig");
|
pub const Mouse = @import("Mouse.zig");
|
||||||
pub const Screen = @import("Screen.zig");
|
pub const Screen = @import("Screen.zig");
|
||||||
pub const AllocatingScreen = @import("InternalScreen.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 Window = @import("Window.zig");
|
||||||
|
pub const Winsize = Tty.Winsize;
|
||||||
|
|
||||||
pub const widgets = @import("widgets.zig");
|
pub const widgets = @import("widgets.zig");
|
||||||
pub const gwidth = @import("gwidth.zig");
|
pub const gwidth = @import("gwidth.zig");
|
||||||
|
|
Loading…
Reference in a new issue