File: src/server/render.zig:272–276
Severity: HIGH
Status: ✅ FIXED — render.zig updated to emit 4:2 and 4:3, input.zig SGR parsing updated to split on ‘:’ to parse subparameters.
const attrFields = comptime blk: {
const all = std.meta.fields(Attr);
break :blk all[0 .. all.len - 1]; // bold, dim, italic, underline, blink, reverse, concealed, strikethrough, overline, double_underline, curly_underline
};
const attrCodes = [_]u8{ 1, 2, 3, 4, 5, 7, 8, 9, 53, 4, 4 };
// b d i u b r c s o dbl_u cur_u
double_underline and curly_underline are both mapped to SGR code 4 (standard underline). The correct codes are 4:2 for double-underline and 4:3 for curly, but these require sub-parameter syntax (\e[4:2m, \e[4:3m). Also overline maps to 53 which some terminals don’t support.
Impact: The off-codes (21 for double, 24 for underline-off) are never emitted — so once double/curly underline is set in a cell, it stays “on” forever in the render output (the attribute tracker never sees an off code matching these states).