This repository contains GLSL shaders for Ghostty cursor effects.
Creates a smooth cursor glide between iPreviousCursor and iCurrentCursor using cubic ease-out interpolation.
- Primary effect: smooth cursor motion with deceleration into the destination cell.
- Destination handling: masks the terminal's real destination cursor during animation to reduce early destination flashes, then reveals the final cursor when animation completes.
- Geometry: uses signed-distance rectangles for cursor placement and edge antialiasing.
- Key tunables:
DURATION,EDGE_SOFT,HIDE_MATCH.
Draws a cursor trail "blaze" between old and new cursor positions using a signed-distance parallelogram.
- Primary effect: a motion trail that visually connects previous and current cursor positions.
- Trail behavior: fades based on movement progress and distance from the destination cursor.
- Trail gating: can suppress short moves and optionally hide same-line trails.
- Key tunables:
DURATION,OPACITY,DRAW_THRESHOLD,HIDE_TRAILS_ON_THE_SAME_LINE, and the trail color constants.