diff options
| author | t <t@tjp.lol> | 2026-06-09 00:00:56 -0600 |
|---|---|---|
| committer | t <t@tjp.lol> | 2026-06-09 08:52:47 -0600 |
| commit | 97b10466d83d488ad2cb9e084159a445af74c845 (patch) | |
| tree | 6bea7c23d00ff1178a43e631fc700f210cb7d85b /src/tui_terminal.zig | |
| parent | 104001d25c9c8cb5ec45ced1678f7c7b70888808 (diff) | |
event lifecycle
Diffstat (limited to 'src/tui_terminal.zig')
| -rw-r--r-- | src/tui_terminal.zig | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/tui_terminal.zig b/src/tui_terminal.zig index 0b00bb4..aa0c2c0 100644 --- a/src/tui_terminal.zig +++ b/src/tui_terminal.zig @@ -46,6 +46,13 @@ pub const seq = struct { /// Carriage return (column 0, same row). pub const carriage_return = "\r"; + /// Cursor-forward (CUF). The full escape `\x1b[<n>C` is built at use + /// sites via `std.fmt` because `n` varies; documented here so the + /// sequence is centralized conceptually. `\x1b[<n>C` moves the cursor + /// RIGHT by `n` columns WITHOUT writing glyphs, so it never overwrites + /// existing content (unlike printing spaces). Used to place the hardware + /// cursor at the virtual-cursor column for IME anchoring (see + /// `Engine.positionHardwareCursor`). /// Clear from cursor to end of line. pub const clear_line = "\x1b[K"; /// Clear from cursor to end of screen. |
