Hello, I've been puzzling over the patch in the forwarded message for the last two days. Although I have a long background in programming, the patch utility is new to me. So I'm wondering if someone could patch the source code and send it to me. Thanks. John
-- Computers to Help People, Inc. http://www.chpi.org 825 East Johnson; Madison, WI 53703 ---------- Forwarded message ---------- Date: Thu, 4 Apr 2002 02:30:24 +0100 (BST) From: Bart Oldeman <[EMAIL PROTECTED]> To: Bart Oldeman <[EMAIL PROTECTED]> Cc: John J. Boyer <[EMAIL PROTECTED]>, Jim Hartley <[EMAIL PROTECTED]>, linux-msdos <[EMAIL PROTECTED]> Subject: non-privileged raw keyboard (was Re: Dosemu and Windows 98 SE) On Thu, 4 Apr 2002, Bart Oldeman wrote: > There exist a few possibilities and work arounds. > b) use $_rawkeyboard=(1) or the -k option. This requires (suid)root for > dosemu.bin, bypasses the terminal and passes keystrokes directly (use > ctrl+alt+fkey to switch consoles) or and then I suddenly realized that you DON'T need to be root to be able to use the raw keyboard, but dosemu enforced that, in my opinion unnecessarily. Here's the patch for dosemu-1.1.3; for 1.0.2.1: ignore first chunk second chunk is for src/base/keyboard/keyb_clients.c third chunk should apply note that raw keyboard is linux console only, not eg. ssh, telnet or xterm. I am also not sure whether this works on every linux kernel and in all configurations. Bart --- src/plugin/kbd_unicode/keyb_raw.c.old Thu Apr 4 01:23:21 2002 +++ src/plugin/kbd_unicode/keyb_raw.c Thu Apr 4 02:03:03 2002 @@ -230,7 +230,7 @@ { int result = FALSE; if (config.usesX || - ((config.console_keyb && can_do_root_stuff) && config.console)) { + (config.console_keyb && config.console)) { result = TRUE; } return result; --- src/plugin/keyboard/keyb_clients.c.old Thu Apr 4 02:00:53 2002 +++ src/plugin/keyboard/keyb_clients.c Thu Apr 4 02:01:10 2002 @@ -188,7 +188,7 @@ } else #endif - if (config.usesX || (config.console_keyb && can_do_root_stuff)) { + if (config.usesX || config.console_keyb) { if (config.usesX || config.console) Keyboard = &Keyboard_raw; else { --- src/env/video/vc.c.old Thu Apr 4 01:49:50 2002 +++ src/env/video/vc.c Thu Apr 4 01:50:13 2002 @@ -136,7 +136,7 @@ c_printf("major = %d minor = %d\n", major, minor); /* console major num is 4, minor 64 is the first serial line */ - if (can_do_root_stuff && (major == 4) && (minor < 64)) { + if ((major == 4) && (minor < 64)) { scr_state.console_no = minor; config.console=1; } - To unsubscribe from this list: send the line "unsubscribe linux-msdos" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html
