summaryrefslogtreecommitdiff
path: root/src/tui_terminal.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/tui_terminal.zig')
-rw-r--r--src/tui_terminal.zig7
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.