a modern tui library written in zig
17
fork

Configure Feed

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

core: reset sgr on deinit, and at the end of prettyPrint

Reset SGR unilaterally when deiniting vaxis. Also reset it at the end of
a prettyPrint render.

+2
+2
src/Vaxis.zig
··· 114 114 115 115 // always show the cursor on exit 116 116 tty.writeAll(ctlseqs.show_cursor) catch {}; 117 + tty.writeAll(ctlseqs.sgr_reset) catch {}; 117 118 if (self.screen.cursor_shape != .default) { 118 119 // In many terminals, `.default` will set to the configured cursor shape. Others, it will 119 120 // change to a blinking block. ··· 974 975 try tty.writeAll(ctlseqs.sync_set); 975 976 defer tty.writeAll(ctlseqs.sync_reset) catch {}; 976 977 try tty.writeAll(ctlseqs.sgr_reset); 978 + defer tty.writeAll(ctlseqs.sgr_reset) catch {}; 977 979 978 980 var reposition: bool = false; 979 981 var row: usize = 0;