Replies: 1 comment 2 replies
-
Nope, there is no exposed ready-to-go API for that, thus you are on your own here (caution, uses private stuff): // within an encoding you can do your cursor jumper logic
// here: move the cursor with CUP
term._core.coreMouseService.addEncoding('my_cursor_jumper', e => term.write(`\x1b[${e.row};${e.col}H`));
// to activate it:
term._core.coreMouseService.activeEncoding = 'my_cursor_jumper';
term._core.coreMouseService.activeProtocol = 'X10';
// --> now a click on a terminal cell should move the cursor there X10 grabs only mouse clicks, for other mouse event types see |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I want the cursor to be positioned at the mouse click without using the Alt key. Does Xterm currently support binding custom mouse events and calling related methods for moving the cursor?
If there are other ways to achieve it, please let me know. Thank you.
Beta Was this translation helpful? Give feedback.
All reactions