Skip to content

More granular query for keyboard enhancement protocol support #952

Closed
@Iorvethe

Description

@Iorvethe

Is your feature request related to a problem? Please describe.
Some terminals could only support a subset of the keyboard enhancement protocol, but crossterm’s query for support only returns a boolean. This could be an issue when an application receives a positive answer for support, but the terminal doesn’t implement the entire protocol it expects (because of a work-in-progress or else). This issue was recently raised in Zellij (see zellij-org/zellij#3789).

Describe the solution you'd like
The proposed solution by Zellij’s maintainer was to either improve the current supports_keyboard_enhancement function or to add an additional interface for a more granular query. The second would be probably better, in my opinion, to avoid breaking existing code, but the semantics of the current function should be changed to mean a complete support of the protocol.

Describe alternatives you've considered if any
Complete implementation of the protocol by terminals, but this could not always be guaranteed, needed or wanted.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions