mirror of
https://github.com/fairyglade/ly.git
synced 2026-03-24 01:06:05 +00:00
Split core code into ly-core library
Signed-off-by: AnErrupTion <anerruption@disroot.org>
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
const interop = @import("../interop.zig");
|
||||
const TerminalBuffer = @import("TerminalBuffer.zig");
|
||||
|
||||
const termbox = interop.termbox;
|
||||
const termbox = TerminalBuffer.termbox;
|
||||
|
||||
const Cell = @This();
|
||||
|
||||
|
||||
@@ -1,10 +1,12 @@
|
||||
const std = @import("std");
|
||||
const interop = @import("../interop.zig");
|
||||
const ly_core = @import("ly-core");
|
||||
const Cell = @import("Cell.zig");
|
||||
|
||||
pub const termbox = @import("termbox2");
|
||||
|
||||
const Random = std.Random;
|
||||
|
||||
const termbox = interop.termbox;
|
||||
const interop = ly_core.interop;
|
||||
|
||||
const TerminalBuffer = @This();
|
||||
|
||||
|
||||
@@ -1,11 +1,10 @@
|
||||
const std = @import("std");
|
||||
const interop = @import("../../interop.zig");
|
||||
const TerminalBuffer = @import("../TerminalBuffer.zig");
|
||||
|
||||
const Allocator = std.mem.Allocator;
|
||||
const DynamicString = std.ArrayListUnmanaged(u8);
|
||||
|
||||
const termbox = interop.termbox;
|
||||
const termbox = TerminalBuffer.termbox;
|
||||
|
||||
const Text = @This();
|
||||
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
const std = @import("std");
|
||||
const interop = @import("../../interop.zig");
|
||||
const TerminalBuffer = @import("../TerminalBuffer.zig");
|
||||
|
||||
pub fn CyclableLabel(comptime ItemType: type, comptime ChangeItemType: type) type {
|
||||
@@ -9,7 +8,7 @@ pub fn CyclableLabel(comptime ItemType: type, comptime ChangeItemType: type) typ
|
||||
const DrawItemFn = *const fn (*Self, ItemType, usize, usize) bool;
|
||||
const ChangeItemFn = *const fn (ItemType, ?ChangeItemType) void;
|
||||
|
||||
const termbox = interop.termbox;
|
||||
const termbox = TerminalBuffer.termbox;
|
||||
|
||||
const Self = @This();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user