authorgravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2026-06-03 21:50:58 -07:00
committergravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2026-06-03 21:50:58 -07:00
log2f19992cb1802893315bd70ce050a53808b04ea5
tree7a1797a93095cf82d9567b6d61f5f7af0977bfcd
parentd1c2ebf3f6c9b0d3aaa74a123d2f0a5657242431
signaturebadge-check Signed by SSH key SHA256:4hHJbtBRU58AYXwjL7fkz2fnQHdiye8x1QpTCQ0sHNw

update to zig 0.16.0


2 files changed, 7 insertions(+), 5 deletions(-)

README.md+1-1
......@@ -4,7 +4,7 @@
44[![license](https://img.shields.io/github/license/nektro/zig-ansi.svg)](https://github.com/nektro/zig-ansi/blob/master/LICENSE)
55[![discord](https://img.shields.io/discord/551971034593755159.svg?logo=discord)](https://discord.gg/P6Y4zQC)
66[![nektro @ github sponsors](https://img.shields.io/badge/sponsors-nektro-purple?logo=github)](https://github.com/sponsors/nektro)
7[![Zig](https://img.shields.io/badge/Zig-0.14-f7a41d)](https://ziglang.org/)
7[![Zig](https://img.shields.io/badge/Zig-0.16-f7a41d)](https://ziglang.org/)
88[![Zigmod](https://img.shields.io/badge/Zigmod-latest-f7a41d)](https://github.com/nektro/zigmod)
99
1010ANSI utilities for CLI usage in Zig.
src/lib.zig+6-4
......@@ -58,11 +58,13 @@ fn make_csi_sequence(comptime c: []const u8, comptime x: anytype) []const u8 {
5858}
5959
6060fn arr_i_to_s(x: anytype) [][]const u8 {
61 var res: [x.len][]const u8 = undefined;
62 for (x, 0..) |item, i| {
63 res[i] = std.fmt.comptimePrint("{}", .{item});
61 comptime {
62 var res: [x.len][]const u8 = undefined;
63 for (x, 0..) |item, i| {
64 res[i] = std.fmt.comptimePrint("{}", .{item});
65 }
66 return &res;
6467 }
65 return &res;
6668}
6769
6870pub const csi = struct {