authorgravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2024-06-05 01:39:18 -07:00
committergravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2024-06-05 01:39:18 -07:00
logcf43dd6c9f328073f7468b5341c69ed0bb185db3
tree02f83200e253bab166348d0c24b81542c5422409
parent9e1d873db79e9ffa6ae6e06bd372428c9be85d97

remove nektro/zig-range


2 files changed, 1 insertions(+), 3 deletions(-)

src/lib.zig+1-2
......@@ -1,6 +1,5 @@
11const std = @import("std");
22const ansi = @import("ansi");
3const range = @import("range").range;
43
54pub fn answer(out: anytype, comptime prompt: []const u8, comptime T: type, comptime valfmt: []const u8, value: T) !T {
65 try out.print(comptime ansi.color.Fg(.Green, "? "), .{});
......@@ -35,7 +34,7 @@ fn doprompt(out: anytype, in: anytype, alloc: std.mem.Allocator, default: ?[]con
3534}
3635
3736fn clean(out: anytype, n: usize) !void {
38 for (range(n)) |_| {
37 for (0..n) |_| {
3938 try out.print(comptime ansi.csi.CursorUp(1), .{});
4039 try out.print(comptime ansi.csi.EraseInLine(0), .{});
4140 }
zig.mod-1
......@@ -5,4 +5,3 @@ license: MIT
55description: A collection of utilities for prompting information from the user on the CLI
66dependencies:
77 - src: git https://github.com/nektro/zig-ansi
8 - src: git https://github.com/nektro/zig-range