support 256 color palette setting

This commit is contained in:
Mitchell Hashimoto
2022-05-19 21:23:39 -07:00
parent 31d019da9e
commit 2309e7ffda

View File

@ -185,6 +185,10 @@ pub fn setAttribute(self: *Terminal, attr: sgr.Attribute) !void {
}; };
}, },
.@"256_fg" => |idx| self.cursor.pen.fg = color.default[idx],
.@"256_bg" => |idx| self.cursor.pen.bg = color.default[idx],
else => return error.InvalidAttribute, else => return error.InvalidAttribute,
} }
} }