mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-04-06 07:38:21 +00:00
Add a comprehensive "Effects" section to the terminal module documentation in terminal.h explaining the callback system that lets embedding applications react to terminal-initiated events (bell, title changes, pty writes, device queries, etc.). The section includes a reference table of all available effects and their triggers, plus @snippet references to the new example. Add c-vt-effects example project demonstrating how to register write_pty, bell, and title_changed callbacks, attach userdata, and feed VT data that triggers each effect.
25 lines
850 B
Zig
25 lines
850 B
Zig
.{
|
|
.name = .c_vt_effects,
|
|
.version = "0.0.0",
|
|
.fingerprint = 0xc02634cd65f5b583,
|
|
.minimum_zig_version = "0.15.1",
|
|
.dependencies = .{
|
|
// Ghostty dependency. In reality, you'd probably use a URL-based
|
|
// dependency like the one showed (and commented out) below this one.
|
|
// We use a path dependency here for simplicity and to ensure our
|
|
// examples always test against the source they're bundled with.
|
|
.ghostty = .{ .path = "../../" },
|
|
|
|
// Example of what a URL-based dependency looks like:
|
|
// .ghostty = .{
|
|
// .url = "https://github.com/ghostty-org/ghostty/archive/COMMIT.tar.gz",
|
|
// .hash = "N-V-__8AAMVLTABmYkLqhZPLXnMl-KyN38R8UVYqGrxqO36s",
|
|
// },
|
|
},
|
|
.paths = .{
|
|
"build.zig",
|
|
"build.zig.zon",
|
|
"src",
|
|
},
|
|
}
|