summaryrefslogtreecommitdiff
path: root/src/tui/tui.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-05 11:17:05 -0300
committerGabriel Schneider <[email protected]>2026-11-05 15:12:36 -0300
commit65b838b9b441a7ce1810f979216ff9246d63df72 (patch)
tree34ea0b5c65781759058846c3a534ebcf6f34ece2 /src/tui/tui.zig
parenta28b37fb04566c36759edab0da7b1f98dffa6808 (diff)
downloadpardes-65b838b9b441a7ce1810f979216ff9246d63df72.tar.gz
pardes-65b838b9b441a7ce1810f979216ff9246d63df72.zip
effects out, the terminal's own: JumpTrail, ChipShadow and ThumbFlash go with their passes in src/tui/panel_compositor.zig, their three tests, their words and settings, and the tty's COLORTERM check, which only they read
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
Diffstat (limited to 'src/tui/tui.zig')
-rw-r--r--src/tui/tui.zig15
1 files changed, 0 insertions, 15 deletions
diff --git a/src/tui/tui.zig b/src/tui/tui.zig
index 674a7812..fae55141 100644
--- a/src/tui/tui.zig
+++ b/src/tui/tui.zig
@@ -1409,12 +1409,8 @@ const Screen = struct {
/// Its size as last taken (`Shell.resized`).
size: ?vaxis.Winsize = null,
tracks: []const pardes.animation.Track = &.{},
- /// T2: the cursor's jump trail (JumpTrail).
- trail: panel_compositor.JumpTrail = .{},
/// The view's glide, the GUI's motion drawn at whole rows (anim 12).
glide: pardes.glide.Glide = .{},
- /// T7: when each pane's view last moved (ThumbFlash).
- flash: panel_compositor.ThumbFlash = .{},
/// `fd` made raw, as vaxis.Tty.init makes /dev/tty: the terminal of a
/// forked session is no controlling terminal of its, which /dev/tty is.
@@ -2619,16 +2615,12 @@ const Shell = struct {
panel_compositor.compose(&frame, sc.tracks, s.core.theme().bg) catch return;
const tz_cells = tracy.zone(@src(), "surface->vaxis");
const win = vx.window();
- const truecolor = vx.caps.rgb or colortermTruecolor();
// Each of the shell's own motions below asks for frames while it runs.
if (sc.glide.pending) sc.glide.measure(s.gpa, canonical);
if (sc.glide.moving()) sc.glide.advance(s.core.now_ns, sc.glide.motion);
s.core.shell_continuous = sc.glide.moving();
s.core.frames.scroll = @round(sc.glide.follow.offset);
panel_compositor.glideRows(&frame, &sc.glide) catch {};
- panel_compositor.chipShadows(&frame, s.core, truecolor) catch {};
- sc.flash.apply(&frame, s.core, truecolor) catch {};
- sc.trail.apply(&frame, s.core, truecolor) catch {};
const shown = frame.shown();
paintCells(win, shown.cells, shown.cols, shown.rows);
if (s.remote) |c| if (c.link.notice_len > 0) noticeLine(win, c.link.notice(), shown.cols, shown.rows);
@@ -3407,10 +3399,3 @@ test "a fade sends the text it dims, not the blanks beside it" {
try std.testing.expect(std.mem.indexOf(u8, sent[1], "90:90:90") != null);
try std.testing.expect(std.mem.indexOfScalar(u8, sent[1], 'a') != null);
}
-
-/// Truecolor by COLORTERM (truecolor or 24bit), for a terminal that does
-/// not answer vaxis's query (ยง9.2: vaxis caps or COLORTERM).
-fn colortermTruecolor() bool {
- const value = std.mem.span(std.c.getenv("COLORTERM") orelse return false);
- return std.mem.eql(u8, value, "truecolor") or std.mem.eql(u8, value, "24bit");
-}