mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-15 00:06:09 +03:00
support 256 color palette setting
This commit is contained in:
@ -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,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user