mirror of
https://github.com/xemu-project/xemu.git
synced 2024-11-27 05:20:50 +00:00
Multi-key completion for sendkey
Allow completion of concatenated key strings for the sendkey command. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6784 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
49dc768d4c
commit
e600d1ef2d
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user