qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: "Kazu" <kazoo@r3.dion.ne.jp>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] -k option on Windows host
Date: Mon, 30 Oct 2006 14:36:53 +0900	[thread overview]
Message-ID: <000c01c6fbe5$68255f00$0464a8c0@athlon> (raw)

[-- Attachment #1: Type: text/plain, Size: 383 bytes --]

Hi,

FYI, -k option can be used only for -vnc option on Windows host.

It is correct that keyboard layout is US keyboard when you start a guest OS.
After booting the guest OS, key layout is converted to your language
environment by the guest OS. You can use your language layout in the guest
OS.

Attatched is a patch for disable -k option if -vnc option is not used.

Regards,
Kazu

[-- Attachment #2: qemu-20061030-k-option.patch --]
[-- Type: application/octet-stream, Size: 1012 bytes --]

? pc-bios/keymaps
Index: sdl.c
===================================================================
RCS file: /sources/qemu/qemu/sdl.c,v
retrieving revision 1.31
diff -u -r1.31 sdl.c
--- sdl.c	19 Aug 2006 14:27:30 -0000	1.31
+++ sdl.c	30 Oct 2006 04:04:53 -0000
@@ -554,6 +554,10 @@
     if (!keyboard_layout)
         keyboard_layout = "en-us";
 #endif
+#ifdef _WIN32
+    if (vnc_display == -1)
+        keyboard_layout = NULL;
+#endif
     if(keyboard_layout) {
         kbd_layout = init_keyboard_layout(keyboard_layout);
         if (!kbd_layout)
Index: vl.h
===================================================================
RCS file: /sources/qemu/qemu/vl.h,v
retrieving revision 1.154
diff -u -r1.154 vl.h
--- vl.h	24 Sep 2006 18:49:43 -0000	1.154
+++ vl.h	30 Oct 2006 04:04:55 -0000
@@ -203,6 +203,8 @@
 
 void kbd_put_keysym(int keysym);
 
+extern int vnc_display;
+
 /* async I/O support */
 
 typedef void IOReadHandler(void *opaque, const uint8_t *buf, int size);

                 reply	other threads:[~2006-10-30  5:36 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='000c01c6fbe5$68255f00$0464a8c0@athlon' \
    --to=kazoo@r3.dion.ne.jp \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).