Improve help under v? ##cons (#17743)

This commit is contained in:
Aswin C 2020-10-13 17:57:36 +05:30 committed by GitHub
parent 741d22ed61
commit e08b963ada
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -339,6 +339,15 @@ static const char *help_msg_vertical_bar[] = {
NULL
};
static const char *help_msg_v[] = {
"Usage:", "v[*i]", "",
"v", "", "open visual panels",
"v", " test", "load saved layout with name test",
"v=", " test", "save current layout with name test",
"vi", " test", "open the file test in 'cfg.editor'",
NULL
};
R_API void r_core_cmd_help(const RCore *core, const char *help[]) {
r_cons_cmd_help (help, core->print->flags & R_PRINT_FLAGS_COLOR);
}
@ -1897,10 +1906,7 @@ static int cmd_panels(void *data, const char *input) {
return false;
}
if (*input == '?') {
eprintf ("Usage: v[*i]\n");
eprintf ("v.test # save current layout with name test\n");
eprintf ("v test # load saved layout with name test\n");
eprintf ("vi ... # launch 'cfg.editor'\n");
r_core_cmd_help (core, help_msg_v);
return false;
}
if (!r_cons_is_interactive ()) {