Skip to content

chrisintheshell/ghostty-shaders

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

Custom Ghostty Shaders

This repository contains GLSL shaders for Ghostty cursor effects.

Shaders

smooth_cursor_movement.glsl (WIP)

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.

cursor_blaze.glsl

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.

About

Custom shaders to use with the Ghostty terminal emulator

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages