summaryrefslogtreecommitdiff
path: root/src/host/Console.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-10-28 21:07:13 -0300
committerGabriel Schneider <[email protected]>2026-11-12 13:22:02 -0300
commit590ba7b9b579b97e34b51ab7e3460ebc85713343 (patch)
tree6a73a7570ff4f79f41deff078455877b9bc6571b /src/host/Console.zig
parentbc8e6eb1bfef0c5e9b3c40fc1e4fd5a1659e2b03 (diff)
downloadsketchbook-590ba7b9b579b97e34b51ab7e3460ebc85713343.tar.gz
sketchbook-590ba7b9b579b97e34b51ab7e3460ebc85713343.zip
sketchbook: Zig 0.17, a Store on disk, requests, a scope (waveform, spectrum, spectrogram), audio codecs and fonts, web host
Diffstat (limited to 'src/host/Console.zig')
-rw-r--r--src/host/Console.zig4
1 files changed, 2 insertions, 2 deletions
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.