htop
htop copied to clipboard
Disabling mouse switches terminal to mouse mode regardless
When disabling mouse (enable_mouse=0 in the config, or -M), the terminal is still switched to mouse mode, except the events are ignored. That is, it overrides the terminal's mouse behavior with nothing, rather than leaving it alone.
In mate-terminal, this manifests as switching the mouse cursor to a pointer instead of text bar, makes mouse wheel send custom events instead of plain up/down arrows, and makes selecting text not work. The exact behavior might differ between terminals.
Try
./autogen.sh && ./configure --enable-debug && sed -i "/HAVE_GETMOUSE/d" config.h && make -j`nproc`
Does that work better for you?
The gpm init is still done as that is part of ncurses (~scroll wheel).
You could just remove libgpm2 if you don't like to use the mouse in terminals at all.
For htop it is nice to be able to switch through the setup screen or the command line.