example: rename some examples

pull/11609/head
Mitchell Hashimoto 2026-03-17 17:39:25 -07:00
parent 383a7e14a7
commit 996ce03f0b
No known key found for this signature in database
GPG Key ID: 523D5DC389D273BC
11 changed files with 10 additions and 10 deletions

View File

@ -29,7 +29,7 @@ pub fn build(b: *std.Build) void {
// Exe // Exe
const exe = b.addExecutable(.{ const exe = b.addExecutable(.{
.name = "c_vt_key_encode", .name = "c_vt_encode_key",
.root_module = exe_mod, .root_module = exe_mod,
}); });
b.installArtifact(exe); b.installArtifact(exe);

View File

@ -29,7 +29,7 @@ pub fn build(b: *std.Build) void {
// Exe // Exe
const exe = b.addExecutable(.{ const exe = b.addExecutable(.{
.name = "c_vt_mouse_encode", .name = "c_vt_encode_mouse",
.root_module = exe_mod, .root_module = exe_mod,
}); });
b.installArtifact(exe); b.installArtifact(exe);

View File

@ -45,8 +45,8 @@
* *
* Complete working examples: * Complete working examples:
* - @ref c-vt/src/main.c - OSC parser example * - @ref c-vt/src/main.c - OSC parser example
* - @ref c-vt-key-encode/src/main.c - Key encoding example * - @ref c-vt-encode-key/src/main.c - Key encoding example
* - @ref c-vt-mouse-encode/src/main.c - Mouse encoding example * - @ref c-vt-encode-mouse/src/main.c - Mouse encoding example
* - @ref c-vt-paste/src/main.c - Paste safety check example * - @ref c-vt-paste/src/main.c - Paste safety check example
* - @ref c-vt-sgr/src/main.c - SGR parser example * - @ref c-vt-sgr/src/main.c - SGR parser example
* - @ref c-vt-formatter/src/main.c - Terminal formatter example * - @ref c-vt-formatter/src/main.c - Terminal formatter example
@ -58,12 +58,12 @@
* extract command information, and retrieve command-specific data like window titles. * extract command information, and retrieve command-specific data like window titles.
*/ */
/** @example c-vt-key-encode/src/main.c /** @example c-vt-encode-key/src/main.c
* This example demonstrates how to use the key encoder to convert key events * This example demonstrates how to use the key encoder to convert key events
* into terminal escape sequences using the Kitty keyboard protocol. * into terminal escape sequences using the Kitty keyboard protocol.
*/ */
/** @example c-vt-mouse-encode/src/main.c /** @example c-vt-encode-mouse/src/main.c
* This example demonstrates how to use the mouse encoder to convert mouse events * This example demonstrates how to use the mouse encoder to convert mouse events
* into terminal escape sequences using the SGR mouse format. * into terminal escape sequences using the SGR mouse format.
*/ */

View File

@ -27,12 +27,12 @@
* changing its properties. * changing its properties.
* 4. Free the encoder with ghostty_key_encoder_free() when done * 4. Free the encoder with ghostty_key_encoder_free() when done
* *
* For a complete working example, see example/c-vt-key-encode in the * For a complete working example, see example/c-vt-encode-key in the
* repository. * repository.
* *
* ## Example * ## Example
* *
* @snippet c-vt-key-encode/src/main.c key-encode * @snippet c-vt-encode-key/src/main.c key-encode
* *
* ## Example: Encoding with Terminal State * ## Example: Encoding with Terminal State
* *

View File

@ -24,12 +24,12 @@
* - Free the event with ghostty_mouse_event_free() or reuse it. * - Free the event with ghostty_mouse_event_free() or reuse it.
* 4. Free the encoder with ghostty_mouse_encoder_free() when done. * 4. Free the encoder with ghostty_mouse_encoder_free() when done.
* *
* For a complete working example, see example/c-vt-mouse-encode in the * For a complete working example, see example/c-vt-encode-mouse in the
* repository. * repository.
* *
* ## Example * ## Example
* *
* @snippet c-vt-mouse-encode/src/main.c mouse-encode * @snippet c-vt-encode-mouse/src/main.c mouse-encode
* *
* ## Example: Encoding with Terminal State * ## Example: Encoding with Terminal State
* *