Skip to content

Contexmanager : long sequence not working #127

Open

Description

@sandbuster2005

hey, I don't know if your still planning to develop it but just in case
keys like shift + arrow , ctrl + arrow don't work since they are longer then 5 keys and c4 is a ; which is not accepted by the reader

Activity

  1. Cube707 commented on Dec 14, 2025

    @Cube707
    Collaborator

    Probably related to #24 and #50

    If someone's interested, implementing proper support to pull in the character codes would be helpfull

  2. sandbuster2005 commented on Dec 14, 2025

    @sandbuster2005
    Author

    probably something to do with linux terminals ,in this case graphic term and tty work the same way

  3. sandbuster2005 commented on Dec 14, 2025

    @sandbuster2005
    Author

    apart from having a database with info about each emulator it feel like it's not possible to know each time , it would only be possible to do for a majority of case

  4. sandbuster2005 commented on Dec 14, 2025

    @sandbuster2005
    Author

    its my opinion but I think it would be great already if it could read all keys correctly even if it cannot be set as a constant

  5. Cube707 commented on Dec 15, 2025

    @Cube707
    Collaborator

    apart from having a database with info about each emulator it feel like it's not possible to know each time , it would only be possible to do for a majority of case

    Supposedly this database exists inside Linux somewhere already and can be queried by application, but I never had the time to get into that

    its my opinion but I think it would be great already if it could read all keys correctly even if it cannot be set as a constant

    That would make sense and feel free to open a PR to support your specific findings and where they apply.

    But are there also cases where a C6 is needed? And what previous values trigger a continued read?
    So "just supporting it" is sadly not as easy as it sounds

  6. sandbuster2005 commented on Dec 16, 2025

    @sandbuster2005
    Author

    C6 was indeed needed for the shift + arrow because it need the ; in the escape code for reasons and without it sent the rest as normal letter
    I plan to look into it next week during vacations but I might trouble you with my lack of knowledge in terminal specific code and basic project methods

  7. sandbuster2005 commented on Dec 16, 2025

    @sandbuster2005
    Author

    test.py I think the best thing would be to do a dictionnary like that (maybe not generated like that ) and simply add the valuable keys to the list of set keys
    it could also help with thing like max length of input and what the intermediate chr in the escape code

  8. sandbuster2005 commented on Jan 2, 2026

    @sandbuster2005
    Author

    the code seem to work pretty well and the test are passing #128

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

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions