andyk / ht

headless terminal - wrap any binary with a terminal interface for easy programmatic access.
Apache License 2.0
746 stars 12 forks source link

Escape sequences - current state of support #2

Open pzmarzly opened 4 weeks ago

pzmarzly commented 4 weeks ago

Does ht interpret ANSI escape codes? There are many protocols that I think ht could interpret and transform into JSON messages. Or if not, then explicitly forward them further over getView API (or a new getUnsanitizedView / getRawView).

Some protocols that are somewhat important for modern terminal experience:

andyk commented 4 weeks ago

Yeah, @ku1ik and I have discussed this this as a future feature to add. Agree that supporting this will be useful!