Re:?==?utf-8?q? xterm: set mouse pointer type for ncurses
Ralf Mattes
rm at mh-freiburg.de
Mon May 22 07:29:33 UTC 2017
Am Montag, 22. Mai 2017 03:07 CEST, Thomas Dickey <dickey at his.com> schrieb:
> On Mon, May 22, 2017 at 12:01:43AM +0200, Tobias Girstmair wrote:
> > Hi, I'm new here.
> >
> > I am trying to build a curses based program, and I'd like to know if
> > there is an option to change the mouse cursor type.
> >
> > The default is the text selection cursor, but I need to use the
> > 'normal' pointer style, if that makes sense to any of you.
> >
> > Is there a control sequence (or at least a command line parameter)
> > for this available?
>
> man curs_set
But this sets the _cursor_. The OP asked about the _mouse pointer_. IIRC ncurses
doesn't deal with the X layer, it only operates at the terminal (emulation) layer.
Cheers, Ralf Mattes
> The curs_set routine sets the cursor state to invisible, normal, or
> very visible for visibility equal to 0, 1, or 2 respectively. If the
> terminal supports the visibility requested, the previous cursor state
> is returned; otherwise, ERR is returned.
>
> --
> Thomas E. Dickey <dickey at invisible-island.net>
> http://invisible-island.net
> ftp://invisible-island.net
More information about the xorg
mailing list