mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-04-06 07:38:21 +00:00
example: rename some examples
This commit is contained in:
@@ -29,7 +29,7 @@ pub fn build(b: *std.Build) void {
|
||||
|
||||
// Exe
|
||||
const exe = b.addExecutable(.{
|
||||
.name = "c_vt_key_encode",
|
||||
.name = "c_vt_encode_key",
|
||||
.root_module = exe_mod,
|
||||
});
|
||||
b.installArtifact(exe);
|
||||
@@ -29,7 +29,7 @@ pub fn build(b: *std.Build) void {
|
||||
|
||||
// Exe
|
||||
const exe = b.addExecutable(.{
|
||||
.name = "c_vt_mouse_encode",
|
||||
.name = "c_vt_encode_mouse",
|
||||
.root_module = exe_mod,
|
||||
});
|
||||
b.installArtifact(exe);
|
||||
@@ -45,8 +45,8 @@
|
||||
*
|
||||
* Complete working examples:
|
||||
* - @ref c-vt/src/main.c - OSC parser example
|
||||
* - @ref c-vt-key-encode/src/main.c - Key encoding example
|
||||
* - @ref c-vt-mouse-encode/src/main.c - Mouse encoding example
|
||||
* - @ref c-vt-encode-key/src/main.c - Key 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-sgr/src/main.c - SGR parser 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.
|
||||
*/
|
||||
|
||||
/** @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
|
||||
* 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
|
||||
* into terminal escape sequences using the SGR mouse format.
|
||||
*/
|
||||
|
||||
@@ -27,12 +27,12 @@
|
||||
* changing its properties.
|
||||
* 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.
|
||||
*
|
||||
* ## 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
|
||||
*
|
||||
|
||||
@@ -24,12 +24,12 @@
|
||||
* - Free the event with ghostty_mouse_event_free() or reuse it.
|
||||
* 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.
|
||||
*
|
||||
* ## 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
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user