this repo has no description
13
fork

Configure Feed

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

fix: do not emit any kitty multi cursor sequences if support is not detected

authored by

CJ van den Berg and committed by
Tim Culverhouse
67bbc1ee 86cac58a

+6 -4
+6 -4
src/Vaxis.zig
··· 799 799 self.state.cursor.row = cursor_pos.row; 800 800 self.state.cursor.col = cursor_pos.col; 801 801 } 802 - if (self.screen.cursor_vis) { 802 + if (self.screen.cursor_vis and self.caps.multi_cursor) { 803 803 try tty.print(ctlseqs.reset_secondary_cursors, .{}); 804 804 for (self.screen.cursor_secondary) |cur| 805 805 try tty.print(ctlseqs.show_secondary_cursor, .{ cur.row + 1, cur.col + 1 }); ··· 1136 1136 1137 1137 /// Set the terminal secondary cursor color 1138 1138 pub fn setTerminalCursorSecondaryColor(self: *Vaxis, tty: *IoWriter, rgb: [3]u8) error{WriteFailed}!void { 1139 - try tty.print(ctlseqs.secondary_cursors_rgb, .{ rgb[0], rgb[1], rgb[2] }); 1140 - try tty.flush(); 1141 - self.state.changed_cursor_color = true; 1139 + if (self.caps.multi_cursor) { 1140 + try tty.print(ctlseqs.secondary_cursors_rgb, .{ rgb[0], rgb[1], rgb[2] }); 1141 + try tty.flush(); 1142 + self.state.changed_cursor_color = true; 1143 + } 1142 1144 } 1143 1145 1144 1146 pub fn resetAllTerminalSecondaryCursors(self: *Vaxis, alloc: std.mem.Allocator) error{OutOfMemory}!void {