Skip to content

[BUG] Shift+Up/Down do not work w/ Termion backend #758

Open

Description

@hrkfdn

Describe the bug
Some bindings do not work with Termion, i.e. Shift+Up/Shift+Down. Shift+p for instance works. This is with the Termion backend on Linux using GNOME Terminal. TERM is set to xterm-256color.

Expected behavior
A clear and concise description of what you expected to happen.

Environment

  • Debian 12.1 with Linux 6.4.0
  • GNOME Terminal 3.46.8 using VTE 0.70.6 +BIDI +GNUTLS +ICU +SYSTEMD
  • Backend used: termion
  • Current locale: en_US.UTF-8
  • Cursive version: 0.20.0

Additional context

Activity

  1. gyscos commented on Sep 29, 2023

    @gyscos
    Owner

    Hi, and thanks for the report!

    Indeed, it seems the termion backend doesn't currently support shift+arrow (or ctrl+arrow). It doesn't seem to be supported in termion itself.

    Termion does return an "unsupported" key code, and we could parse these codes here, but in that case we'd pretty much be doing the backend library's job. I'm not entirely against that, but I slightly prefer the alternatives:

    • Properly report these events in termion itself, so we could support it in cursive.
    • Use another backend that supports these events, like crossterm.
  2. hrkfdn commented on Sep 30, 2023

    @hrkfdn
    Author

    Thanks, I have switched to Crossterm now, seems to work fine :)

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions