8000 Terminal.trackMouse(MouseTracking.Off) is not turning tracking off for other modes than MouseTracking.Normal · Issue #1189 · jline/jline3 · GitHub
[go: up one dir, main page]

Skip to content
Terminal.trackMouse(MouseTracking.Off) is not turning tracking off for other modes than MouseTracking.Normal #1189
@suhelak

Description

@suhelak

To turn tracking off, a code corresponding to the one used to turn tracking on should be used.
In MouseSupport:
terminal.writer().write("\u001b[?1000l"); is only working for the normal mode.
terminal.writer().write("\u001b[?1002l"); should be sent to turn Button mode off.
terminal.writer().write("\u001b[?1003l"); should be sent to turn Any mode off.

You can reproduce the problem on macOS or Linux by running a CLI sample using jline in Any mode, turn tracking off, quitting the sample.
Then moving the mouse is sending garbage in the terminal.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0