Would anyone want a terminal emulator framework? Basically, imagine a bunch of R...
Ity Kitty [unit X-69] - VIOLENT FUCK ⇉ 40C3 @tranquillity@mastodon.minionflo.net
Would anyone want a terminal emulator framework?
Basically, imagine a bunch of Rust crates that implement various parts of a terminal emulator
Such as an escape sequence state machine. Each escape sequence is an object like, ChangeForegroundTextColor(Red), and all of them are a tagged union, and are returned by an iterator that generates them from bytes by parsing the bytes (set foreground to red: 1b 5b 33 31 6d, letters uwu: 75 77 75, reset formatting: 1b 5b 30 6d)
Can also be written as
CSI = 1B 5B (\x1b[)
m (m) is termination of the command
CSI 3 1 m
uwu
CSI 0 m