"Antonio Apostoliu" <antonio.aposto...@cestrin.ro> writes:

> Hello 
>
>  
>
> You are so kind to tell me how can I use qmp to send colon character . I
> speak about this character   :
>
>  
>
> I tried:
>
> {"execute":"send-key","arguments":{"keys":[{"type":"qcode","data":"shift-sem
> icolon"}]}}
Reply:

  {"error": {"class": "GenericError", "desc": "Parameter 'data' does not accept 
value 'shift-semicolon'"}}

There is no key code "shift-semicolon".

The "QEMU QMP Reference Manual" lists the key codes:
https://qemu.readthedocs.io/en/latest/interop/qemu-qmp-ref.html#qapidoc-1729

> {"execute":"send-key","arguments":{"keys":[{"type":"qcode","data":"shift","d
> ata":"semicolon"}]}}

Reply:

    {"error": {"class": "GenericError", "desc": "JSON parse error, duplicate 
key"}}

Repeated keys don't make lists, lists do:

    {"execute": "send-key",
     "arguments": {"keys": [
         {"type": "qcode","data": "shift"},
         {"type": "qcode","data": "semicolon"}]}}

> Both don't sent the character in my case

Next time, include the replies you observe in your question.

> All others character worked
>
>  
>
> Best regards


Reply via email to