Hi,

Sébastien <[email protected]> writes:

> I'm trying to type specials characters (like '#','-', or '@') in a vm thru 
> 'marionnette-type', but
> without success.
>
> I use the procedure in a system test, like for example :
>
>   (marionette-type "echo '-' > result\n" marionette)

‘marionette-type’ instructs QEMU to emulate keyboard input, and this is
very dependent on the keyboard being emulated and its layout.  It’s a US
QWERTY keyboard by default.

If you look at (gnu build marionette), you’ll see that ‘marionette-type’
translates from characters to keystrokes, via the
‘%qwerty-us-keystrokes’ alist.  It might be that we need to add dash in
there.

Try it in QEMU: start a VM, type Ctrl-Alt-2, and from here try “sendkey -”
and see what happens.

HTH!

Ludo’.

Reply via email to