this repo has no description
13
fork

Configure Feed

Select the types of activity you want to include in your feed.

color: export Color and fix bright indexing

Signed-off-by: Tim Culverhouse <tim@timculverhouse.com>

+3 -2
+1
src/main.zig
··· 5 5 pub const Cell = cell.Cell; 6 6 pub const Style = cell.Style; 7 7 pub const Segment = cell.Segment; 8 + pub const Color = cell.Color; 8 9 9 10 pub const Key = @import("Key.zig"); 10 11 pub const Mouse = @import("Mouse.zig");
+2 -2
src/vaxis.zig
··· 359 359 .index => |idx| { 360 360 switch (idx) { 361 361 0...7 => try std.fmt.format(writer, ctlseqs.fg_base, .{idx}), 362 - 8...15 => try std.fmt.format(writer, ctlseqs.fg_bright, .{idx}), 362 + 8...15 => try std.fmt.format(writer, ctlseqs.fg_bright, .{idx - 8}), 363 363 else => try std.fmt.format(writer, ctlseqs.fg_indexed, .{idx}), 364 364 } 365 365 }, ··· 376 376 .index => |idx| { 377 377 switch (idx) { 378 378 0...7 => try std.fmt.format(writer, ctlseqs.bg_base, .{idx}), 379 - 8...15 => try std.fmt.format(writer, ctlseqs.bg_bright, .{idx}), 379 + 8...15 => try std.fmt.format(writer, ctlseqs.bg_bright, .{idx - 8}), 380 380 else => try std.fmt.format(writer, ctlseqs.bg_indexed, .{idx}), 381 381 } 382 382 },