qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] -k option on Windows host
@ 2006-10-30  5:36 Kazu
  0 siblings, 0 replies; only message in thread
From: Kazu @ 2006-10-30  5:36 UTC (permalink / raw)
  To: qemu-devel

[-- 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);

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-10-30  5:36 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-10-30  5:36 [Qemu-devel] -k option on Windows host Kazu

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).