From: Jan Kiszka Date: Thu, 25 Jun 2009 06:22:02 +0000 (+0200) Subject: monitor: Add completion for help command X-Git-Tag: TizenStudio_2.0_p2.3.2~208^2~11543 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f3353c6bc3c7ef4ce018aa4faa1b02aa59d9d178;p=sdk%2Femulator%2Fqemu.git monitor: Add completion for help command Signed-off-by: Jan Kiszka Signed-off-by: Anthony Liguori --- diff --git a/monitor.c b/monitor.c index 7fdd3a0..0878c36 100644 --- a/monitor.c +++ b/monitor.c @@ -2921,6 +2921,11 @@ static void monitor_find_completion(const char *cmdline) for(key = key_defs; key->name != NULL; key++) { cmd_completion(str, key->name); } + } else if (!strcmp(cmd->name, "help|?")) { + readline_set_completion_index(cur_mon->rs, strlen(str)); + for (cmd = mon_cmds; cmd->name != NULL; cmd++) { + cmd_completion(str, cmd->name); + } } break; default: