Skip to content

🐁 Mouse Support in LineReader does not work as documented on x3 different Terminals on Linux #1254

@vorburger

Description

@vorburger

In enola-dev/enola#1376,

I've attempted to enable Mouse Support in LineReader,

as documented on https://jline.org/docs/advanced/mouse-support/#mouse-support-in-linereader.

But when I click between 2 words on a prompt, then it does not reposition the cursor, but prints "garbagge" (ANSI control sequences).

I've tried this on x3 different Terminals on Linux:

  • Kitty 0.41.1 with this config (prints [<0;32;24M[<0;32;24m)
  • ptyxis 47.13 on Fedora 41 (prints [<0;32;30M[<0;32;30m)
  • GNOME Terminal of Fedora 41 (Version 3.54.4 for GNOME 47, using VTE version 0.78.4 +BIDI +GNUTLS +ICU +SYSTEMD) (prints [<0;32;20M[<0;32;20m)

Is this expected to "just work"? Do Terminals need special configuration for this to work? What could be the cause of seeing this "garbagge"?

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