szn

Bug 86 — XTSMGRAPHICS response silently fails on bufPrint overflow or writeInput error

86. XTSMGRAPHICS response silently fails on bufPrint overflow or writeInput error

File: src/input.zig:536–538 Severity: MEDIUM Status: ✅ FIXED — increased buffer to 64 bytes, log warnings on both failure paths.

const rep = std.fmt.bufPrint(&buf, "\x1b[?{d};0;0S", .{ps1}) catch "";
if (rep.len > 0) pty.writeInput(rep) catch {};

Both bufPrint failure (returns empty string → never sent) and writeInput failure are silently swallowed. The terminal querying for graphics attributes hangs indefinitely.