Write an explanation of the escape codes as text
Closed this issue · 1 comments
rgwood commented
Wezterm has a wezterm replay --explain-only
function which generates output like this:
Action(CSI(Edit(EraseInLine(EraseToEndOfLine))))
Action(Control(CarriageReturn))
Action(Control(LineFeed))
Action(CSI(Edit(EraseInLine(EraseToEndOfLine))))
Action(CSI(Cursor(Position { line: OneBased { value: 18 }, col: OneBased { value: 4 } })))
Action(CSI(Mode(SetDecPrivateMode(Code(ShowCursor)))))
It's useful to have that kind of succinct explanation in text format, Escape Artist should have a similar ability.
TODO: think real hard about the best output format, then implement it
rgwood commented
This would be easy now that we're using Termwiz (from Wezterm) but idk, I haven't felt the need for it. Gonna close it for now, reopen if I change my mind.