home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / os / linux / 20017 < prev    next >
Encoding:
Text File  |  1992-12-11  |  1.8 KB  |  43 lines

  1. Newsgroups: comp.os.linux
  2. Path: sparky!uunet!haven.umd.edu!wam.umd.edu!joel
  3. From: joel@wam.umd.edu (Joel M. Hoffman)
  4. Subject: Re: 'Special' keys not working in DOS Emulator
  5. Message-ID: <1992Dec12.022250.10656@wam.umd.edu>
  6. Keywords: keyboard, emulator, dos, linux
  7. Sender: usenet@wam.umd.edu (USENET News system)
  8. Nntp-Posting-Host: rac2.wam.umd.edu
  9. Organization: University of Maryland, College Park
  10. References: <1992Dec11.172517.25575@midway.uchicago.edu>
  11. Date: Sat, 12 Dec 1992 02:22:50 GMT
  12. Lines: 29
  13.  
  14. In article <1992Dec11.172517.25575@midway.uchicago.edu> ace3@midway.uchicago.edu writes:
  15. >I have been playing with the DOS emulator v 0.4 (kernel version 98.6);
  16. >it's really amazing -- nice work!!
  17. >
  18. > [...]
  19. > none of the special keys generate the
  20. >correct response under the DOS emulator.  (A special key is
  21. >Alt-anything, the cursor pad keys and the function keys).  All the the
  22. >keys I've tried seem to generate ESC[<letter>.  I thought this might be
  23. >caused by running under an xterm so I tried it outside of X and had the
  24. >same response.  Looking through the code, it seems that Alt keys and
  25. >such are expected and should work, so what's going on??
  26. >
  27. >I have the US keyboard defined in kernel Makefile and DO NOT define the
  28. >Latin keyboard define in the emulator makefile.  
  29.  
  30. Normally, function keys etc. generate escape sequences.  For the DOS
  31. emulator to work, it has to bypass the normal keybaord driver in the
  32. kernel, and get the keys directly.  Of course, this means nothing can
  33. be piped to the emulator.
  34.  
  35. I would recommend adding a function to the kernel (perhaps there
  36. already is one?) to return to true state of the keyboard, and then
  37. modifying the emulator to use that.  Of course, the kernel itself uses
  38. Alt-<fn key>, so there would have to be an alternative way of
  39. returning that (for use with WordPerfect, e.g.).  
  40.  
  41. -Joel
  42. (joel@wam.umd.edu)
  43.