add "text" action

This commit is contained in:
Guillaume Wenzek
2023-11-24 17:21:57 +01:00
parent 9ee1c939fd
commit 223accb4c8
2 changed files with 43 additions and 2 deletions

View File

@@ -134,6 +134,9 @@ pub const Action = union(enum) {
/// Send an ESC sequence.
esc: []const u8,
// Send the given text. Uses Zig string literal syntax.
text: []const u8,
/// Send data to the pty depending on whether cursor key mode is
/// enabled ("application") or disabled ("normal").
cursor_key: CursorKey,