* [Qemu-devel] [6784] Multi-key completion for sendkey
@ 2009-03-08 17:42 Blue Swirl
0 siblings, 0 replies; only message in thread
From: Blue Swirl @ 2009-03-08 17:42 UTC (permalink / raw)
To: qemu-devel
Revision: 6784
http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=6784
Author: blueswir1
Date: 2009-03-08 17:42:02 +0000 (Sun, 08 Mar 2009)
Log Message:
-----------
Multi-key completion for sendkey
Allow completion of concatenated key strings for the sendkey command.
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Modified Paths:
--------------
trunk/monitor.c
Modified: trunk/monitor.c
===================================================================
--- trunk/monitor.c 2009-03-08 16:26:59 UTC (rev 6783)
+++ trunk/monitor.c 2009-03-08 17:42:02 UTC (rev 6784)
@@ -2957,6 +2957,9 @@
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 [flat|nested] only message in thread
only message in thread, other threads:[~2009-03-08 17:42 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-08 17:42 [Qemu-devel] [6784] Multi-key completion for sendkey Blue Swirl
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).