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 @@...@@ -4,7 +4,7 @@
4[![license](https://img.shields.io/github/license/nektro/zig-ansi.svg)](https://github.com/nektro/zig-ansi/blob/master/LICENSE)4[![license](https://img.shields.io/github/license/nektro/zig-ansi.svg)](https://github.com/nektro/zig-ansi/blob/master/LICENSE)
5[![discord](https://img.shields.io/discord/551971034593755159.svg?logo=discord)](https://discord.gg/P6Y4zQC)5[![discord](https://img.shields.io/discord/551971034593755159.svg?logo=discord)](https://discord.gg/P6Y4zQC)
6[![nektro @ github sponsors](https://img.shields.io/badge/sponsors-nektro-purple?logo=github)](https://github.com/sponsors/nektro)6[![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/)
8[![Zigmod](https://img.shields.io/badge/Zigmod-latest-f7a41d)](https://github.com/nektro/zigmod)8[![Zigmod](https://img.shields.io/badge/Zigmod-latest-f7a41d)](https://github.com/nektro/zigmod)
99
10ANSI utilities for CLI usage in Zig.10ANSI 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 {...@@ -58,11 +58,13 @@ fn make_csi_sequence(comptime c: []const u8, comptime x: anytype) []const u8 {
58}58}
5959
60fn arr_i_to_s(x: anytype) [][]const u8 {60fn arr_i_to_s(x: anytype) [][]const u8 {
61 var res: [x.len][]const u8 = undefined;61 comptime {
62 for (x, 0..) |item, i| {62 var res: [x.len][]const u8 = undefined;
63 res[i] = std.fmt.comptimePrint("{}", .{item});63 for (x, 0..) |item, i| {
64 res[i] = std.fmt.comptimePrint("{}", .{item});
65 }
66 return &res;
64 }67 }
65 return &res;
66}68}
6769
68pub const csi = struct {70pub const csi = struct {