You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
README: add a note on structured terminal sequence generation
Indicate the secondary value of the library as an abstraction over
escape sequences for terminal applications. Even without the high
performance rendering, the library is useful to provide semantic control
sequence generation.
Beyond high-level UI rendering, VirtualTerminal provides a structured, type-safe API for formulating terminal escape sequences. Rather than hardcoding string literals like `"\033[31;1m"`, you express terminal commands using semantic Swift types.
88
+
89
+
The `ControlSequence` enum covers ISO 6429/ECMA-48 compliant terminal operations:
-**Semantic clarity**: Express intent with Swift types, not escape code memorization
107
+
-**Compile-time validation**: Prevents malformed sequences and parameter errors
108
+
-**Encoding abstraction**: Handles 7-bit vs 8-bit encoding automatically
109
+
-**Composability**: Chain operations with fluent syntax using the `<<<` operator
110
+
111
+
The library generates correct ANSI/VT100 escape sequences from these structured commands, making it both a UI toolkit and a robust terminal control sequence generator.
0 commit comments