The
wsmoused daemon provides mouse support in console, allowing copying and pasting text. The left mouse button is used to select text when held and you use the right button to paste it in the active console.
Supported options are as follows:
-d device
specifies the device file to be used as the
wsmouse(4) device. Defaults to
/dev/wsmouse.
-f conf_file
specifies the configuration file to be used. Defaults to /etc/wsmoused.conf.
-m modes
specifies which modes should be activated. Mode names are given in the argument as a whitespace separated list. Overrides the ‘modes' directive in the configuration file.
-n
do not fork in the background (for debugging purposes). Overrides the ‘nodaemon' directive in the configuration file.
Many other details can be tuned. See
wsmoused.conf(5) for more information.
wsmoused is designed to be a multipurpose mouse daemon. Functionality is provided through independent
modes, enabled either through the
-m flag or through the ‘modes' property in the configuration file (the former takes precedence).
The action mode
The ‘action' mode executes commands upon receiving mouse button events. Commands can be associated on a button basis, and can differentiate between push or release events.
The selection mode
The ‘selection' mode provides visual copy and paste support in text consoles when using the
wscons(4) device. A selection is created by clicking with the primary mouse button at any point on the screen and dragging it while clicked. When the button is released, the selected text is copied to an internal buffer for further pasting with the secondary button.