osmates vm type
Type text on the machine's keyboard, or paste it through the guest's clipboard.
osmates vm type <machine> <text> [--method <method>]auto, the default, types what fits within 30 seconds and pastes what the guest's layout can't type. keys types on the guest's layout at about 40 characters a second. paste puts the text on the guest's clipboard and presses the paste shortcut, which works with any layout and character.
keys refuses text it can't type before that part goes in. Parts typed before it stay typed.
Keyboard layouts in a machine: https://osmates.com/docs/keyboard
Examples
osmates vm type dev 'hello world'
osmates vm type dev --method paste 'Grüße aus Köln\n'Arguments
<machine>RequiredThe machine's identifier or name.
<text>RequiredThe text to type. \n types Return.
--method <method>How the text goes in.
A Windows or macOS guest's agent tells keys its layout, and a machine set up with US or ABC whose agent can't tell types on US. A Linux guest types only on the us layout. keys refuses a character the layout lacks or types only through a dead key, such as ê on French. It also refuses text under a macOS input method, and at a macOS login window set up with another layout. Printable ASCII types as its dead key and Space where it needs one.
One of
auto,keys,paste.Default:
auto