~? shows help

This commit is contained in:
Pepe Vila 2017-04-17 17:15:20 +02:00 committed by radare
parent 8baa2643b3
commit 046a31cad4
2 changed files with 4 additions and 0 deletions

View File

@ -1861,6 +1861,9 @@ next2:
memmove (escape, ptr, strlen (escape));
ptr = NULL;
}
} else if (ptr == cmd && *ptr && ptr[1] == '?') {
r_cons_grep_help ();
return true;
}
if (ptr && *cmd != '.') {
*ptr = '\0';

View File

@ -519,6 +519,7 @@ R_API char *r_cons_hud_string(const char *s);
R_API char *r_cons_hud_file(const char *f);
R_API const char *r_cons_get_buffer(void);
R_API void r_cons_grep_help(void);
R_API void r_cons_grep(const char *str);
R_API int r_cons_grep_line(char *buf, int len); // must be static
R_API int r_cons_grepbuf(char *buf, int len);