From 590ba7b9b579b97e34b51ab7e3460ebc85713343 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Wed, 28 Oct 2026 21:07:13 -0300 Subject: sketchbook: Zig 0.17, a Store on disk, requests, a scope (waveform, spectrum, spectrogram), audio codecs and fonts, web host --- src/host/Console.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/host/Console.zig') diff --git a/src/host/Console.zig b/src/host/Console.zig index e6be2f0..b22facb 100644 --- a/src/host/Console.zig +++ b/src/host/Console.zig @@ -95,7 +95,7 @@ fn complete(self: *Console, extra: []const []const u8) void { first = candidate; common = candidate.len; } - const match = std.fmt.bufPrint(matches[used..], "{s} ", .{candidate}) catch continue; + const match = std.mem.print(matches[used..], "{s} ", .{candidate}) catch continue; used += match.len; count += 1; }; @@ -120,7 +120,7 @@ pub fn log(self: *Console, message: []const u8) void { pub fn print(self: *Console, comptime fmt: []const u8, args: anytype) void { var buf: [512]u8 = undefined; - self.log(std.fmt.bufPrint(&buf, fmt, args) catch "(message too long)"); + self.log(std.mem.print(&buf, fmt, args) catch "(message too long)"); } /// Runs one line. Host commands first; anything else goes to the sketch. -- cgit v1.3