diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2016-12-16 12:36:26 +0100 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2016-12-16 12:46:16 +0100 |
| commit | d841ec7bc29262f9a51cfbf7acaa2e64688ab9a0 (patch) | |
| tree | 408235ff953bca4621ada48224357fbb8f68a970 | |
| parent | 518b4001af9f2f93917198a7615f5770c092f5bf (diff) | |
| download | vis-d841ec7bc29262f9a51cfbf7acaa2e64688ab9a0.tar.gz vis-d841ec7bc29262f9a51cfbf7acaa2e64688ab9a0.tar.xz | |
vis: add section about compile time configuration to :help output
| -rw-r--r-- | vis-cmds.c | 15 |
1 files changed, 15 insertions, 0 deletions
@@ -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; } |
