home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / os / linux / 8299 < prev    next >
Encoding:
Internet Message Format  |  1992-08-14  |  2.8 KB

  1. Path: sparky!uunet!mcsun!uknet!ox-prg!oxuniv!tony
  2. From: tony@vax.oxford.ac.uk
  3. Newsgroups: comp.os.linux
  4. Subject: Small patch for "grey keys" (usefull for VMS connections)
  5. Message-ID: <1992Aug14.185130.8289@vax.oxford.ac.uk>
  6. Date: 14 Aug 92 17:51:30 GMT
  7. Organization: Oxford University VAX 6620
  8. Lines: 78
  9.  
  10. Dear All,
  11.      Hear is a cdiff to /usr/src/linux/kernel/chr_drv/keyboard.c which gets 
  12. the "grey keys" working in a (IMHO) usefull way.  You should now find VMS 
  13. systems see the folowing keys as :-
  14.       PC            VMS
  15.    <insert>    -->    <insert here>
  16.    <delete>    -->    <remove>
  17.    <home>    -->    <find>
  18.    <end>    -->    <select>
  19.    <page Up>    -->    <previos screen>
  20.    <page down>    -->    <next screen>
  21.  
  22. I don't think this breaks anything.  I'm using it now OK anyhow !
  23. I hope someone finds it usefull !
  24.  
  25. The patch is only small, but this is the first code (change) I've sent to c.o.l 
  26. so pleas don't bark too loudly !!!
  27.  
  28. cut here ...
  29. ================================================================================
  30.  
  31. *** keyboard.c    Fri Aug 14 17:11:45 1992
  32. --- keyboard.c.dis    Fri Jul 31 17:50:05 1992
  33. ***************
  34. *** 1041,1047 ****
  35.   static unsigned char num_table[] = "789-456+1230,";
  36.   #endif
  37.   
  38. ! static unsigned char cur_table[] = "1A5-DGC+4B623";
  39.   static unsigned int pad_table[] = { 7,8,9,0,4,5,6,0,1,2,3,0,0 };
  40.   
  41.   /*    
  42. --- 1041,1047 ----
  43.   static unsigned char num_table[] = "789-456+1230,";
  44.   #endif
  45.   
  46. ! static unsigned char cur_table[] = "HA5-DGC+YB623";
  47.   static unsigned int pad_table[] = { 7,8,9,0,4,5,6,0,1,2,3,0,0 };
  48.   
  49.   /*    
  50. ***************
  51. *** 1107,1117 ****
  52.       char buf[] = { 0x1b, '[', 0, 0, 0 };          /* must not be static */
  53.   
  54.       buf[2]=cur_table[sc];
  55. !     if (buf[2] < '9') {
  56.           buf[3]='~';
  57. !     } else
  58. !             if ((buf[2] >= 'A' && buf[2] <= 'D') ? ckmode : kapplic)
  59. !                buf[1]='O';
  60.       puts_queue(buf);
  61.   }
  62.   
  63. --- 1107,1116 ----
  64.       char buf[] = { 0x1b, '[', 0, 0, 0 };          /* must not be static */
  65.   
  66.       buf[2]=cur_table[sc];
  67. !     if (buf[2] < '9')
  68.           buf[3]='~';
  69. !     if ((buf[2] >= 'A' && buf[2] <= 'D') ? ckmode : kapplic)
  70. !         buf[1]='O';
  71.       puts_queue(buf);
  72.   }
  73.   
  74. ================================================================================
  75.  
  76. Chears !
  77.  
  78. Tony
  79.                                                     _
  80. Tony Kew,   Oxford University Computing Services,  (_)xford,  England,  U.K.
  81. ====================================================|=========================
  82. Janet/Internet:- tony@vax.oxford.ac.uk            --+--    Disclaimer :-
  83. Earn/Bitnet:- tony%vax.oxford.ac.uk@ukacrl          | Who is the more foolish?
  84.                                                     |    The fool, or the
  85. Phone:- +44 (0)865 273268   Fax:- +44 (0)865 273275 |  man who follows him?
  86. ==================================================\=|=/=======================
  87.       Toronto Blue Jays for the World Series       \|/ Villa for the League
  88.