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
{{ message }}
This repository was archived by the owner on Aug 16, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Aug 16, 2026. It is now read-only.
Decouple terminal sequence construction from drivers #22
area: driversIssues related to the terminal drivers.area: ioIssues related to core terminal I/O.area: samplesIssues related to the sample projects.area: sequencesIssues related to the control sequence APIs.
Applications should be able to bundle a bunch of escape sequences and emit them all at once. This will require decoupling construction of escape sequences from the terminal driver.
A consequence of this is that the driver will no longer be easily able to keep track of terminal state based on the methods/properties invoked by the application. To be fair, though, that state could already get out of sync if the application emitted escape sequences manually.
A better design here might be for the driver to hook into the input/output streams and have a minimal escape sequence parser to keep track of what the application is doing. This is quite a bit more involved than the current design, but it's also a lot more foolproof, and would allow us to also parse things like query responses (e.g. cursor position).
area: driversIssues related to the terminal drivers.area: ioIssues related to core terminal I/O.area: samplesIssues related to the sample projects.area: sequencesIssues related to the control sequence APIs.
Activity
alexrp commentedon Nov 20, 2021
A consequence of this is that the driver will no longer be easily able to keep track of terminal state based on the methods/properties invoked by the application. To be fair, though, that state could already get out of sync if the application emitted escape sequences manually.
A better design here might be for the driver to hook into the input/output streams and have a minimal escape sequence parser to keep track of what the application is doing. This is quite a bit more involved than the current design, but it's also a lot more foolproof, and would allow us to also parse things like query responses (e.g. cursor position).