* [Qemu-devel] [PATCH] monitor: Multi-key completion for sendkey
@ 2009-03-08 15:27 Jan Kiszka
2009-03-08 17:43 ` Blue Swirl
0 siblings, 1 reply; 2+ messages in thread
From: Jan Kiszka @ 2009-03-08 15:27 UTC (permalink / raw)
To: qemu-devel
Allow completion of concatenated key strings for the sendkey command.
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
---
monitor.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/monitor.c b/monitor.c
index 32dc4d5..44791c2 100644
--- a/monitor.c
+++ b/monitor.c
@@ -2957,6 +2957,9 @@ static void monitor_find_completion(const char *cmdline)
cmd_completion(str, cmd->name);
}
} else if (!strcmp(cmd->name, "sendkey")) {
+ char *sep = strrchr(str, '-');
+ if (sep)
+ str = sep + 1;
readline_set_completion_index(cur_mon->rs, strlen(str));
for(key = key_defs; key->name != NULL; key++) {
cmd_completion(str, key->name);
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [Qemu-devel] [PATCH] monitor: Multi-key completion for sendkey
2009-03-08 15:27 [Qemu-devel] [PATCH] monitor: Multi-key completion for sendkey Jan Kiszka
@ 2009-03-08 17:43 ` Blue Swirl
0 siblings, 0 replies; 2+ messages in thread
From: Blue Swirl @ 2009-03-08 17:43 UTC (permalink / raw)
To: qemu-devel
On 3/8/09, Jan Kiszka <jan.kiszka@web.de> wrote:
> Allow completion of concatenated key strings for the sendkey command.
>
> Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
I've always wanted this feature, thanks! Applied as r6784.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-03-08 17:43 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-03-08 15:27 [Qemu-devel] [PATCH] monitor: Multi-key completion for sendkey Jan Kiszka
2009-03-08 17:43 ` Blue Swirl
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.