MEV(1)
๐ MEV โ a program to report mouse events ๐
okay bestie, welcome to mev from the General Commands Manual section, and no cap this little guy is literally the mouse-event gossip channel you didn't know you needed ๐ญโจ
โจ NAME โจ
mev โ a program to report mouse events ๐ฑ๏ธ๐
๐ธ SYNOPSIS ๐ธ
mev [ options ]
๐ DESCRIPTION ๐
So mev is part of the gpm package, periodt. Heads up tho: everything below was extracted from the texinfo file, which is the preferred source of information โ so if you want the real real, that's where to go, iykyk.
mev is modeled after xev, iconic behaviour honestly. It prints to stdout the mouse console events it gets. It's giving surveillance but make it cute. ๐ฆ
mev's default behaviour is to get anything, but command line switches can be used to set the various fields in the Gpm_Connect structure, in order to customize the program's behaviour. And fr fr, the author uses mev to handle mouse events to Emacs. main character energy. ๐
Command line switches for mev are the following:
-Cnumber โ Select a virtual console to get events from. This is intended to be used for debugging. ๐-dnumber โ Choose a default mask. By default the server gets any events not belonging to the event mask. The mask can be provided either as a decimal number, or as a symbolic string. ๐ซ-enumber โ Choose the event mask. By default any event is received. The mask can be provided either as a decimal number, or as a symbolic string. โจ-Eโ Enter emacs mode. In emacs mode events are reported as lisp forms rather than numbers. This is the format used by thet-mousepackage within emacs. ๐ง-fโ Fit events inside the screen before reporting them. This options re-fits drag events, which are allowed to exit the screen border, ๐-iโ Interactive. Accepts input from stdin to change connection parameters. ๐ฎ-mnumber โ Choose the minimum modifier mask. Any event with fewer modifiers will not be reported tomev. It defaults to0. The mask must be provided either as a decimal number, or as a symbolic string. ๐-Mnumber โ Choose the maximum modifier mask. Any event with more modifier than specified will not be reported tomev. It defaults to~0, i.e. all events are received. The mask must be provided either as a decimal number, or as a symbolic string. ๐-pโ Requests to draw the pointer during drags. This option is used by emacs to avoid invokingioctl()from lisp code. ๐ซถ
When the arguments are not decimal integers, they are considered lists of alphanumeric characters, separated by a single non-alphanumeric character. The author uses the comma (,), but any will do. not me being flexible like that ๐
Allowed names for events are move, drag, down or press, up or release, motion (which is both move and drag), and hard. ๐
Allowed names for modifiers are shift, leftAlt, rightAlt, anyAlt (one or the other), control. ๐
When the -i switch is specified, mev looks at its standard input as command lines rather than events. The input lines are parsed, and the commands push and pop are recognized. ๐
The push command, then, accepts the options -d, -e, -m and -M, with the same meaning described above. Unspecified options retain the previous value and the resulting masks are used to reopen the connection with the server. pop is used to pop the connection stack. If an empty stack is popped the program exits. ๐
Other commands recognized are info, used to return the stack depth; quit to prematurely terminate the program; and snapshot to get some configuration information from the server. โญ
๐ญ BUGS ๐ญ
Beginning with release 1.16, mev no longer works under xterm. ๐ Please use the rmev program (provided in the sample directory) to watch gpm events under xterm or rxvt. rmev also displays keyboard events besides mouse events. so yeah, upgrade your vibe check, bestie.
๐ AUTHOR ๐
Alessandro Rubini <rubini@linux.it> Ian Zimmerman <itz@speakeasy.org>
๐ฆ FILES ๐ฆ
/dev/gpmctlโ The socket used to connect to gpm. ๐
๐ SEE ALSO ๐
gpm(8)โ The mouse servergpm-root(1)โ An handler for Control-Mouse events.
The info file about gpm, which gives more complete information and explains how to write a gpm client. ๐
and that's the whole page, bestie ๐ซถ this one came from the 4th Berkeley Distribution and it's dated February 1995 โ vintage but still slaying, mwah ๐ โจ
๐ฆ where this page comes from
- alpine 3.22: gpm-doc 1.20.7-r5 ยท GPL-2.0-or-later
- alpine 3.23: gpm-doc 1.20.7-r6 ยท GPL-2.0-or-later
- alpine 3.24: gpm-doc 1.20.7-r6 ยท GPL-2.0-or-later
- arch rolling: gpm 1.20.7.r38.ge82d1a6-7 ยท GPL
- centos-stream 9: gpm 1.20.7-29.el9 ยท GPLv2 and OFSFDL
- epel 10: gpm 1.20.7-48.el10_1 ยท GPL-2.0-or-later AND LicenseRef-OFSFDL
- fedora 43: gpm 1.20.7-52.fc43 ยท GPL-2.0-or-later AND LicenseRef-OFSFDL
- fedora 44: gpm 1.20.7-53.fc44 ยท GPL-2.0-or-later AND LicenseRef-OFSFDL
- nixpkgs unstable: gpm 1.20.7-unstable-2020-06-17
- opensuse-leap 16.0: gpm 1.20.7-160000.2.2 ยท GPL-2.0-or-later AND GPL-3.0-or-later
- opensuse-leap 16.0: gpm 1.20.7-160000.2.2 ยท GPL-2.0-or-later AND GPL-3.0-or-later
- opensuse-leap 16.0: gpm 1.20.7-160000.2.2 ยท GPL-2.0-or-later AND GPL-3.0-or-later
- opensuse-leap 16.0: gpm 1.20.7-160000.2.2 ยท GPL-2.0-or-later AND GPL-3.0-or-later
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms