[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [6784] Multi-key completion for sendkey
From: |
Blue Swirl |
Subject: |
[Qemu-devel] [6784] Multi-key completion for sendkey |
Date: |
Sun, 08 Mar 2009 17:42:03 +0000 |
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 <address@hidden>
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);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Qemu-devel] [6784] Multi-key completion for sendkey,
Blue Swirl <=