io as interface

pull/8930/head
greathongtu 2025-10-04 21:17:04 +08:00
parent fe52eb9494
commit 906dac3145
1 changed files with 4 additions and 1 deletions

View File

@ -211,7 +211,10 @@ fn writeAutoThemeFile(alloc: std.mem.Allocator, theme_name: []const u8) !void {
var f = try std.fs.createFileAbsolute(auto_path, .{ .truncate = true });
defer f.close();
try f.writer().print("theme = {s}\n", .{theme_name});
var buf: [128]u8 = undefined;
var w = f.writer(&buf);
try w.interface.print("theme = {s}\n", .{theme_name});
try w.interface.flush();
}
const Event = union(enum) {