From 777d0a4114de80751af0d836c9d923d02cf5fc98 Mon Sep 17 00:00:00 2001 From: Witold Filipczyk Date: Tue, 1 Mar 2022 17:55:13 +0100 Subject: [PATCH] [version] Show gpm version --- src/main/version.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/main/version.c b/src/main/version.c index e9c56fb7..0d329c23 100644 --- a/src/main/version.c +++ b/src/main/version.c @@ -29,6 +29,10 @@ #include "encoding/zstd.h" #endif +#if defined(CONFIG_MOUSE) && defined(CONFIG_GPM) +#include +#endif + #include "intl/libintl.h" #include "main/module.h" #include "main/select.h" @@ -165,6 +169,13 @@ get_dyn_full_version(struct terminal *term, int more) #endif #ifndef CONFIG_MOUSE comma, _("No mouse", term), +#else +#ifdef CONFIG_GPM + comma, "gpm(", Gpm_GetLibVersion(NULL), ")", +#endif +#ifdef CONFIG_SYSMOUSE + comma, "sysmouse", +#endif #endif #ifdef CONFIG_UTF8 comma, "UTF-8",