> Does GPM let you move the insertion point in nano or vim?
If you enable mouse support. (set mouse for nano and set mouse=a in vim).
> Have you ever gotten GPM to work with X11 or Wayland?
That'd be rather... Pointless. X11 and Wayland already allow the mouse to work without GPM. Just enable the mouse in nano, vim or whatever, and it'll work.
Whatever terminal-emulation app (e.g., Gnome Terminal) you are using will allow you to select text in the app's window, but nano or vim will never know about it. I.e., the user's mouse gestures are never transmitted to the program (e.g., nano) on the other side of the pseudo-TTY (PTY).
So for example, the user cannot use the mouse to move the insertion point in nano.
> So for example, the user cannot use the mouse to move the insertion point in nano.
That is not the case if you enable mouse support, as I've said.
Try it. Add:
set mouse
To ~/.nanorcOpen a file, and click. The insertion point will move.
Oh, OK. Good to know. Thanks for your reply. vim, too?
And when the user selected text using GPM, the program (e.g., nano) never learned of it: it was local to GPM and the linux console.
The man page you linked states, "The selection mechanism is disabled if the controlling virtual console is placed in graphics mode, for example when running X11, and is re-enabled when text mode is resumed," (then goes on the describe how sometimes it does not get re-enabled because of a bug).
Can a modern PC even be put into text mode anymore? (Honest question: I do not know.)
Have you ever gotten GPM to work with X11 or Wayland?