qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] Extra scan codes for missing keys
@ 2010-05-27 20:31 Brendan Sleight
  2010-06-01 19:29 ` Bernhard M. Wiedemann
  0 siblings, 1 reply; 5+ messages in thread
From: Brendan Sleight @ 2010-05-27 20:31 UTC (permalink / raw)
  To: qemu-devel

Hi All,

First - Qemu is fantastic and allows lots of wonderful things.

Second, when using qemu-system-ppc, I wanted to use sendkey to emulate
a colon. This patch enables shift-semicolon to emulate a ':'

Whilst I was adding semicolon, I used the following link to look up
some other missing keys :-
 http://terpconnect.umd.edu/~nsw/ench250/scancode.htm#Key2

Please cc my to any replies as I am not subscribed to the list.

Best Regards,
Brendan M. Sleight

diff --git a/monitor.c b/monitor.c
index ad50f12..e1ffa0e 100644
--- a/monitor.c
+++ b/monitor.c
@@ -1641,6 +1641,8 @@ static const KeyDef key_defs[] = {
     { 0x17, "i" },
     { 0x18, "o" },
     { 0x19, "p" },
+    { 0x1a, "sqr_brack_l" },
+    { 0x1b, "sqr_brack_r" },

     { 0x1c, "ret" },

@@ -1653,7 +1655,11 @@ static const KeyDef key_defs[] = {
     { 0x24, "j" },
     { 0x25, "k" },
     { 0x26, "l" },
+    { 0x27, "semicolon" },
+    { 0x28, "apostrophe" },
+    { 0x29, "grave_accent" },

+    { 0x2b, "backslash" },
     { 0x2c, "z" },
     { 0x2d, "x" },
     { 0x2e, "c" },

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [Qemu-devel] [PATCH] Extra scan codes for missing keys
  2010-05-27 20:31 [Qemu-devel] [PATCH] Extra scan codes for missing keys Brendan Sleight
@ 2010-06-01 19:29 ` Bernhard M. Wiedemann
  2010-06-01 19:46   ` Anthony Liguori
  0 siblings, 1 reply; 5+ messages in thread
From: Bernhard M. Wiedemann @ 2010-06-01 19:29 UTC (permalink / raw)
  To: qemu-devel; +Cc: Bernhard M. Wiedemann

The code comes from
http://lists.gnu.org/archive/html/qemu-devel/2010-05/msg02788.html

Without this patch it is not possible to send at least 10 special
characters (\|'"`~:;[]{}) via the monitor sendkey command.

Signed-off-by: Bernhard M. Wiedemann <qemudevbmw@lsmod.de>
---
 monitor.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/monitor.c b/monitor.c
index 15b53b9..09ff8cf 100644
--- a/monitor.c
+++ b/monitor.c
@@ -1563,6 +1563,8 @@ static const KeyDef key_defs[] = {
     { 0x17, "i" },
     { 0x18, "o" },
     { 0x19, "p" },
+    { 0x1a, "sqr_brack_l" },
+    { 0x1b, "sqr_brack_r" },
 
     { 0x1c, "ret" },
 
@@ -1575,7 +1577,11 @@ static const KeyDef key_defs[] = {
     { 0x24, "j" },
     { 0x25, "k" },
     { 0x26, "l" },
+    { 0x27, "semicolon" },
+    { 0x28, "apostrophe" },
+    { 0x29, "grave_accent" },
 
+    { 0x2b, "backslash" },
     { 0x2c, "z" },
     { 0x2d, "x" },
     { 0x2e, "c" },
-- 
1.5.6.5

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [Qemu-devel] [PATCH] Extra scan codes for missing keys
  2010-06-01 19:29 ` Bernhard M. Wiedemann
@ 2010-06-01 19:46   ` Anthony Liguori
  2010-06-02  3:32     ` Bernhard M. Wiedemann
  0 siblings, 1 reply; 5+ messages in thread
From: Anthony Liguori @ 2010-06-01 19:46 UTC (permalink / raw)
  To: Bernhard M. Wiedemann; +Cc: qemu-devel

On 06/01/2010 02:29 PM, Bernhard M. Wiedemann wrote:
> The code comes from
> http://lists.gnu.org/archive/html/qemu-devel/2010-05/msg02788.html
>
> Without this patch it is not possible to send at least 10 special
> characters (\|'"`~:;[]{}) via the monitor sendkey command.
>
> Signed-off-by: Bernhard M. Wiedemann<qemudevbmw@lsmod.de>
> ---
>   monitor.c |    6 ++++++
>   1 files changed, 6 insertions(+), 0 deletions(-)
>
> diff --git a/monitor.c b/monitor.c
> index 15b53b9..09ff8cf 100644
> --- a/monitor.c
> +++ b/monitor.c
> @@ -1563,6 +1563,8 @@ static const KeyDef key_defs[] = {
>       { 0x17, "i" },
>       { 0x18, "o" },
>       { 0x19, "p" },
> +    { 0x1a, "sqr_brack_l" },
> +    { 0x1b, "sqr_brack_r" },
>    

I think it would be better to spell it out as: bracket_left and 
bracket_right

Regards,

Anthony Liguori

>
>       { 0x1c, "ret" },
>
> @@ -1575,7 +1577,11 @@ static const KeyDef key_defs[] = {
>       { 0x24, "j" },
>       { 0x25, "k" },
>       { 0x26, "l" },
> +    { 0x27, "semicolon" },
> +    { 0x28, "apostrophe" },
> +    { 0x29, "grave_accent" },
>
> +    { 0x2b, "backslash" },
>       { 0x2c, "z" },
>       { 0x2d, "x" },
>       { 0x2e, "c" },
>    

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Qemu-devel] [PATCH] Extra scan codes for missing keys
  2010-06-01 19:46   ` Anthony Liguori
@ 2010-06-02  3:32     ` Bernhard M. Wiedemann
  2010-06-23  1:46       ` Anthony Liguori
  0 siblings, 1 reply; 5+ messages in thread
From: Bernhard M. Wiedemann @ 2010-06-02  3:32 UTC (permalink / raw)
  To: qemu-devel; +Cc: Bernhard M. Wiedemann

The code comes from
http://lists.gnu.org/archive/html/qemu-devel/2010-05/msg02788.html

Without this patch it is not possible to send at least 10 special
characters (\|'"`~:;[]{}) via the monitor sendkey command.

Signed-off-by: Bernhard M. Wiedemann <qemudevbmw@lsmod.de>
---
 monitor.c |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/monitor.c b/monitor.c
index 15b53b9..1635040 100644
--- a/monitor.c
+++ b/monitor.c
@@ -1563,7 +1563,8 @@ static const KeyDef key_defs[] = {
     { 0x17, "i" },
     { 0x18, "o" },
     { 0x19, "p" },
-
+    { 0x1a, "bracket_left" },
+    { 0x1b, "bracket_right" },
     { 0x1c, "ret" },
 
     { 0x1e, "a" },
@@ -1575,7 +1576,11 @@ static const KeyDef key_defs[] = {
     { 0x24, "j" },
     { 0x25, "k" },
     { 0x26, "l" },
+    { 0x27, "semicolon" },
+    { 0x28, "apostrophe" },
+    { 0x29, "grave_accent" },
 
+    { 0x2b, "backslash" },
     { 0x2c, "z" },
     { 0x2d, "x" },
     { 0x2e, "c" },
-- 
1.5.6.5

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [Qemu-devel] [PATCH] Extra scan codes for missing keys
  2010-06-02  3:32     ` Bernhard M. Wiedemann
@ 2010-06-23  1:46       ` Anthony Liguori
  0 siblings, 0 replies; 5+ messages in thread
From: Anthony Liguori @ 2010-06-23  1:46 UTC (permalink / raw)
  To: Bernhard M. Wiedemann; +Cc: qemu-devel

On 06/01/2010 10:32 PM, Bernhard M. Wiedemann wrote:
> The code comes from
> http://lists.gnu.org/archive/html/qemu-devel/2010-05/msg02788.html
>
> Without this patch it is not possible to send at least 10 special
> characters (\|'"`~:;[]{}) via the monitor sendkey command.
>
> Signed-off-by: Bernhard M. Wiedemann<qemudevbmw@lsmod.de>
>    

Applied.  Thanks.

Regards,

Anthony Liguori
> ---
>   monitor.c |    7 ++++++-
>   1 files changed, 6 insertions(+), 1 deletions(-)
>
> diff --git a/monitor.c b/monitor.c
> index 15b53b9..1635040 100644
> --- a/monitor.c
> +++ b/monitor.c
> @@ -1563,7 +1563,8 @@ static const KeyDef key_defs[] = {
>       { 0x17, "i" },
>       { 0x18, "o" },
>       { 0x19, "p" },
> -
> +    { 0x1a, "bracket_left" },
> +    { 0x1b, "bracket_right" },
>       { 0x1c, "ret" },
>
>       { 0x1e, "a" },
> @@ -1575,7 +1576,11 @@ static const KeyDef key_defs[] = {
>       { 0x24, "j" },
>       { 0x25, "k" },
>       { 0x26, "l" },
> +    { 0x27, "semicolon" },
> +    { 0x28, "apostrophe" },
> +    { 0x29, "grave_accent" },
>
> +    { 0x2b, "backslash" },
>       { 0x2c, "z" },
>       { 0x2d, "x" },
>       { 0x2e, "c" },
>    

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2010-06-23  1:46 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-27 20:31 [Qemu-devel] [PATCH] Extra scan codes for missing keys Brendan Sleight
2010-06-01 19:29 ` Bernhard M. Wiedemann
2010-06-01 19:46   ` Anthony Liguori
2010-06-02  3:32     ` Bernhard M. Wiedemann
2010-06-23  1:46       ` Anthony Liguori

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).