xterm: set mouse pointer type for ncurses

Marius Gedminas marius at gedmin.as
Mon May 22 10:29:24 UTC 2017


On Mon, May 22, 2017 at 11:43:24AM +0200, Henrik Pauli wrote:
> I know you said it's a bit off-topic here, but I noticed something and thought
> it might be related to Tobias's question.  In Konsole (and also in
> mate-terminal), if I open mc (which I think is an ncurses application), the
> mouse pointer changes to arrow (from the normal I-beam thing); however it does
> not do so in xterm.  less also uses the alternative buffer just like mc, but
> does not cause the pointer to change, so I guess it's not merely the terminal
> mode change that triggers this behaviour in Konsole and mate-terminal.

I would guess the terminal reacts this way to the application enabling mouse
tracking:
http://invisible-island.net/xterm/ctlseqs/ctlseqs.html#h2-Mouse-Tracking

(Just like some terminals react to the application switching to the
alternate screen by disabling the scrollbar and changing the mouse wheel
to send up/down arrow key events instead of scrolling.)

> Is this perhaps some feature that is missing from xterm then but exists in
> Konsole/mate-terminal?

xterm supports mouse tracking, but doesn't change the mouse cursor to
indicate this.

Marius Gedminas
-- 
(Why, oh! why is X not written in Lisp?)
        -- Juliusz Chroboczek
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 163 bytes
Desc: not available
URL: <https://lists.x.org/archives/xorg/attachments/20170522/747bf232/attachment.sig>


More information about the xorg mailing list