aboutsummaryrefslogtreecommitdiff
path: root/vis-cmds.c
diff options
context:
space:
mode:
Diffstat (limited to 'vis-cmds.c')
-rw-r--r--vis-cmds.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/vis-cmds.c b/vis-cmds.c
index bf811da..0947e72 100644
--- a/vis-cmds.c
+++ b/vis-cmds.c
@@ -692,6 +692,21 @@ static bool cmd_help(Vis *vis, Win *win, Command *cmd, const char *argv[], Curso
}
}
+ text_appendf(txt, "\n Compile time configuration\n\n");
+
+ const struct {
+ const char *name;
+ bool enabled;
+ } configs[] = {
+ { "Lua support: ", CONFIG_LUA },
+ { "Lua LPeg statically built-in: ", CONFIG_LPEG },
+ { "POSIX ACL support: ", CONFIG_ACL },
+ { "SELinux support: ", CONFIG_SELINUX },
+ };
+
+ for (size_t i = 0; i < LENGTH(configs); i++)
+ text_appendf(txt, " %-32s\t%s\n", configs[i].name, configs[i].enabled ? "yes" : "no");
+
text_save(txt, NULL);
return true;
}