| ... | @@ -19,7 +19,7 @@ fn doprompt(out: anytype, in: anytype, alloc: std.mem.Allocator, default: ?[]con | ... | @@ -19,7 +19,7 @@ fn doprompt(out: anytype, in: anytype, alloc: std.mem.Allocator, default: ?[]con |
| 19 | var value: []const u8 = undefined; | 19 | var value: []const u8 = undefined; |
| 20 | while (true) : (n += 1) { | 20 | while (true) : (n += 1) { |
| 21 | try out.print(comptime ansi.color.Faint("> "), .{}); | 21 | try out.print(comptime ansi.color.Faint("> "), .{}); |
| 22 | var input: []const u8 = try in.readUntilDelimiterAlloc(alloc, '\n', 100); | 22 | var input: []const u8 = try in.readUntilDelimiterAlloc(alloc, '\n', 1024); |
| 23 | input = std.mem.trimRight(u8, input, "\r\n"); | 23 | input = std.mem.trimRight(u8, input, "\r\n"); |
| 24 | | 24 | |
| 25 | if (input.len == 0) if (default) |d| { | 25 | if (input.len == 0) if (default) |d| { |