aboutsummaryrefslogtreecommitdiff
path: root/mousmain.c
diff options
context:
space:
mode:
authorJavier <dev.git@javispedro.com>2022-11-27 22:41:15 +0100
committerJavier <dev.git@javispedro.com>2022-11-27 22:41:15 +0100
commitf2a1a9f49d98de0f2d71e8c65bad9379634975d7 (patch)
treeda462fa8e68a093b60994686347838b3f89f79b6 /mousmain.c
parent544a184a4373fc29ba9d030bd8efb59fb56a28e2 (diff)
downloadvbados-f2a1a9f49d98de0f2d71e8c65bad9379634975d7.tar.gz
vbados-f2a1a9f49d98de0f2d71e8c65bad9379634975d7.zip
refactor to add per-mount options to vbsf
Diffstat (limited to 'mousmain.c')
-rw-r--r--mousmain.c31
1 files changed, 16 insertions, 15 deletions
diff --git a/mousmain.c b/mousmain.c
index d8e9f84..d84407e 100644
--- a/mousmain.c
+++ b/mousmain.c
@@ -33,7 +33,7 @@
#include "dostsr.h"
#include "mousetsr.h"
-nl_catd cat;
+static nl_catd cat;
#if USE_WHEEL
static void detect_wheel(LPTSRDATA data)
@@ -389,23 +389,24 @@ static int driver_not_found(void)
static void print_help(void)
{
- puts(_(0, 0, "\n"
- "Usage: "));
- puts(_(0, 1, " VBMOUSE <ACTION> <ARGS..>\n"));
- puts(_(0, 2, "Supported actions:"));
- puts(_(0, 3, " install install the driver (default)"));
- puts(_(0, 4, " low install in conventional memory (otherwise UMB)"));
- puts(_(0, 5, " uninstall uninstall the driver from memory"));
+ putchar('\n');
+ puts(_(0, 0, "Usage: "));
+ puts(_(0, 1, " VBMOUSE <ACTION> <ARGS..>"));
+ putchar('\n');
+ puts(_(0, 2, "Supported actions and options:"));
+ puts(_(0, 3, " install Install the driver (default)."));
+ puts(_(0, 4, " low Install in conventional memory (otherwise UMB)."));
+ puts(_(0, 5, " uninstall Uninstall the driver from memory."));
#if USE_WHEEL
- puts(_(0, 6, " wheel <ON|OFF> enable/disable wheel API support"));
- puts(_(0, 7, " wheelkey <KEY|OFF> emulate a specific keystroke on wheel scroll"));
- puts(_(0, 8, " supported keys: updn, pageupdn"));
+ puts(_(0, 6, " wheel <ON|OFF> Enable/disable wheel API support."));
+ puts(_(0, 7, " wheelkey <KEY|OFF> Emulate a specific keystroke on wheel scroll."));
+ puts(_(0, 8, " Supported keys: updn, pageupdn."));
#endif
#if USE_INTEGRATION
- puts(_(0, 9, " integ <ON|OFF> enable/disable virtualbox integration"));
- puts(_(0, 10, " hostcur <ON|OFF> enable/disable mouse cursor rendering in host"));
+ puts(_(0, 9, " integ <ON|OFF> Enable/disable VirtualBox integration."));
+ puts(_(0, 10, " hostcur <ON|OFF> Enable/disable mouse cursor rendering in the host."));
#endif
- puts(_(0, 11, " reset reset mouse driver settings"));
+ puts(_(0, 11, " reset Reset mouse driver."));
}
static int invalid_arg(const char *s)
@@ -451,7 +452,7 @@ int main(int argc, const char *argv[])
cat = kittenopen("vbmouse");
- printf(_(1, 20, "\nVBMouse %x.%x (like MSMOUSE %x.%x)\n"), VERSION_MAJOR, VERSION_MINOR, REPORTED_VERSION_MAJOR, REPORTED_VERSION_MINOR);
+ printf(_(1, 20, "\nVBMouse %x.%x (reporting as MSMOUSE %x.%x)\n"), VERSION_MAJOR, VERSION_MINOR, REPORTED_VERSION_MAJOR, REPORTED_VERSION_MINOR);
if (argi >= argc || stricmp(argv[argi], "install") == 0) {
bool high = true;