Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: mouse to move the cursor?



2026-02-10 11:35:33 -0800, Ray Andrews:
[...]
> Understood.  Yeah ... zsh has no way of knowing where the the mouse is
> unless the terminal somehow communicated that ... and it doesn't.  Or mine
> doesn't, anyway.
[...]

xterm has had mouse tracking support for over 40 years I
beleive. I'd be surprised if any modern terminal emulator didn't
support it.

Surely you must have used mouse positioning in your text editor
or other TUI application before.

See
https://invisible-island.net/xterm/ctlseqs/ctlseqs.html#h2-Mouse-Tracking
for the escape sequences that control it.

-- 
Stephane




Messages sorted by: Reverse Date, Date, Thread, Author