Skip to content
This repository was archived by the owner on Aug 16, 2026. It is now read-only.
This repository was archived by the owner on Aug 16, 2026. It is now read-only.

Decouple terminal sequence construction from drivers #22

Description

@alexrp

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.

Activity

  1. added
    state: approved
    area: drivers
    area: samples
    on Nov 20, 2021
  2. self-assigned this
    on Nov 20, 2021
  3. alexrp commented on Nov 20, 2021

    @alexrp
    SponsorMemberAuthor

    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).

  4. added
    area: sequences
    on Nov 28, 2021
  5. added
    area: io
    and removed
    state: approved
    on Nov 28, 2021
  6. added this to the v1.0 milestone on Dec 20, 2021
  7. removed their assignment
    on Jan 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: driversarea: ioarea: samplesarea: sequences

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions