]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
docs: virsh: clarify behavior of send-key
authorCole Robinson <crobinso@redhat.com>
Sat, 20 Oct 2012 23:55:24 +0000 (19:55 -0400)
committerCole Robinson <crobinso@redhat.com>
Sat, 27 Oct 2012 19:11:19 +0000 (15:11 -0400)
https://bugzilla.redhat.com/show_bug.cgi?id=860004
(cherry picked from commit 2143ced7f557db6486623c8ce0ca296aeb7b8392)

tools/virsh.pod

index c02ffe823288c9f2a581b6102eb4dbba4ca0222c..1b771c73c8f8b8c72801f5571b058beff26e122f 100644 (file)
@@ -1289,6 +1289,10 @@ will be held for that many milliseconds.  The default codeset is
 B<linux>, but use of the I<--codeset> option allows other codesets to
 be chosen.
 
+If multiple keycodes are specified, they are all sent simultaneously
+to the guest, and they may be received in random order. If you need
+distinct keypresses, you must use multiple send-key invocations.
+
 =over 4
 
 =item B<linux>
@@ -1353,10 +1357,14 @@ bit of the first byte. No symbolic names are provided.
 =back
 
 B<Examples>
-  # send three strokes 'k', 'e', 'y', using xt codeset
+  # send three strokes 'k', 'e', 'y', using xt codeset. these
+  # are all pressed simultaneously and may be received by the guest
+  # in random order
   virsh send-key dom --codeset xt 37 18 21
+
   # send one stroke 'right-ctrl+C'
   virsh send-key dom KEY_RIGHTCTRL KEY_C
+
   # send a tab, held for 1 second
   virsh send-key --holdtime 1000 0xf