home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / gnustuff / tos / updates / update14.zoo / curses / diffs
Encoding:
Text File  |  1992-01-15  |  1.6 KB  |  69 lines

  1. *** 1.8    1991/09/24 17:24:27
  2. --- Changelo    1992/01/14 19:56:18
  3. ***************
  4. *** 98,100 ****
  5. --- 98,106 ----
  6.       where you do a fork(), and chars accumulate while in the child
  7.       process.
  8.   -------------------------- Patchelevel  9 ---------------------------------
  9. + xconsole.c:: ++jrb
  10. +     when a key in not alted, return <key>| 0x80 on a alt-key.
  11. +     thanks to scott for this idea.
  12. + -------------------------- Patchelevel  10 ---------------------------------
  13. *** 1.7    1991/09/24 17:24:27
  14. --- PatchLev.h    1992/01/14 19:56:19
  15. ***************
  16. *** 1,5 ****
  17.   /*
  18. !  *    PathLevel: 9
  19.    *
  20.    *    the Patch Level above is to identify the version
  21.    *    of the all the files in this directory. given the above
  22. --- 1,5 ----
  23.   /*
  24. !  *    PathLevel: 10
  25.    *
  26.    *    the Patch Level above is to identify the version
  27.    *    of the all the files in this directory. given the above
  28. *** 1.5    1991/09/24 17:24:27
  29. --- xconsole.c    1992/01/14 19:56:28
  30. ***************
  31. *** 156,163 ****
  32.   {
  33.       k_buf *p;
  34.       short i, j, dev;
  35. !     unsigned scan, key, shft;
  36.       long r;
  37.   
  38.       dev = LOOKUP(handle);
  39.   
  40. --- 156,164 ----
  41.   {
  42.       k_buf *p;
  43.       short i, j, dev;
  44. !     unsigned scan, key, shft = 0;
  45.       long r;
  46. +         static unsigned char _alt_str[2] = {0, 0};
  47.   
  48.       dev = LOOKUP(handle);
  49.   
  50. ***************
  51. *** 184,190 ****
  52. --- 185,198 ----
  53.       if (scan > 0 && scan < N_KEYCODES) {
  54.           shft = Kbshift(-1);
  55.           if (shft & S_ALT)
  56. +                 {
  57.               _str = kb_alt[scan];
  58. +             if(!_str)
  59. +             { /* return <META>-key */
  60. +                _str = (char *)_alt_str;
  61. +                    _alt_str[0] = 0x80 | key;
  62. +                         }
  63. +                 }
  64.           else if (shft & S_SHIFT)
  65.               _str = kb_shft[scan];
  66.           else if (!(shft & S_CNTRL))
  67.