From cf43dd6c9f328073f7468b5341c69ed0bb185db3 Mon Sep 17 00:00:00 2001 From: Meghan Denny Date: Wed, 5 Jun 2024 01:39:18 -0700 Subject: [PATCH] remove nektro/zig-range --- src/lib.zig | 3 +-- zig.mod | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/lib.zig b/src/lib.zig index b59da2b651d8b3fe7765fde5311c45ac076865d0..5219a761de6a4e627362138fa87c38c0bbbad33b 100644 --- a/src/lib.zig +++ b/src/lib.zig @@ -1,6 +1,5 @@ const std = @import("std"); const ansi = @import("ansi"); -const range = @import("range").range; pub fn answer(out: anytype, comptime prompt: []const u8, comptime T: type, comptime valfmt: []const u8, value: T) !T { try out.print(comptime ansi.color.Fg(.Green, "? "), .{}); @@ -35,7 +34,7 @@ fn doprompt(out: anytype, in: anytype, alloc: std.mem.Allocator, default: ?[]con } fn clean(out: anytype, n: usize) !void { - for (range(n)) |_| { + for (0..n) |_| { try out.print(comptime ansi.csi.CursorUp(1), .{}); try out.print(comptime ansi.csi.EraseInLine(0), .{}); } diff --git a/zig.mod b/zig.mod index bb0ced17da0f32c574bf15b5c7a401daf6e84f83..af7ff2cf20e13216e1876c6738548f4e5f8bb775 100644 --- a/zig.mod +++ b/zig.mod @@ -5,4 +5,3 @@ license: MIT description: A collection of utilities for prompting information from the user on the CLI dependencies: - src: git https://github.com/nektro/zig-ansi - - src: git https://github.com/nektro/zig-range -- 2.54.0