home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!mcsun!uknet!ox-prg!oxuniv!tony
- From: tony@vax.oxford.ac.uk
- Newsgroups: comp.os.linux
- Subject: Small patch for "grey keys" (usefull for VMS connections)
- Message-ID: <1992Aug14.185130.8289@vax.oxford.ac.uk>
- Date: 14 Aug 92 17:51:30 GMT
- Organization: Oxford University VAX 6620
- Lines: 78
-
- Dear All,
- Hear is a cdiff to /usr/src/linux/kernel/chr_drv/keyboard.c which gets
- the "grey keys" working in a (IMHO) usefull way. You should now find VMS
- systems see the folowing keys as :-
- PC VMS
- <insert> --> <insert here>
- <delete> --> <remove>
- <home> --> <find>
- <end> --> <select>
- <page Up> --> <previos screen>
- <page down> --> <next screen>
-
- I don't think this breaks anything. I'm using it now OK anyhow !
- I hope someone finds it usefull !
-
- The patch is only small, but this is the first code (change) I've sent to c.o.l
- so pleas don't bark too loudly !!!
-
- cut here ...
- ================================================================================
-
- *** keyboard.c Fri Aug 14 17:11:45 1992
- --- keyboard.c.dis Fri Jul 31 17:50:05 1992
- ***************
- *** 1041,1047 ****
- static unsigned char num_table[] = "789-456+1230,";
- #endif
-
- ! static unsigned char cur_table[] = "1A5-DGC+4B623";
- static unsigned int pad_table[] = { 7,8,9,0,4,5,6,0,1,2,3,0,0 };
-
- /*
- --- 1041,1047 ----
- static unsigned char num_table[] = "789-456+1230,";
- #endif
-
- ! static unsigned char cur_table[] = "HA5-DGC+YB623";
- static unsigned int pad_table[] = { 7,8,9,0,4,5,6,0,1,2,3,0,0 };
-
- /*
- ***************
- *** 1107,1117 ****
- char buf[] = { 0x1b, '[', 0, 0, 0 }; /* must not be static */
-
- buf[2]=cur_table[sc];
- ! if (buf[2] < '9') {
- buf[3]='~';
- ! } else
- ! if ((buf[2] >= 'A' && buf[2] <= 'D') ? ckmode : kapplic)
- ! buf[1]='O';
- puts_queue(buf);
- }
-
- --- 1107,1116 ----
- char buf[] = { 0x1b, '[', 0, 0, 0 }; /* must not be static */
-
- buf[2]=cur_table[sc];
- ! if (buf[2] < '9')
- buf[3]='~';
- ! if ((buf[2] >= 'A' && buf[2] <= 'D') ? ckmode : kapplic)
- ! buf[1]='O';
- puts_queue(buf);
- }
-
- ================================================================================
-
- Chears !
-
- Tony
- _
- Tony Kew, Oxford University Computing Services, (_)xford, England, U.K.
- ====================================================|=========================
- Janet/Internet:- tony@vax.oxford.ac.uk --+-- Disclaimer :-
- Earn/Bitnet:- tony%vax.oxford.ac.uk@ukacrl | Who is the more foolish?
- | The fool, or the
- Phone:- +44 (0)865 273268 Fax:- +44 (0)865 273275 | man who follows him?
- ==================================================\=|=/=======================
- Toronto Blue Jays for the World Series \|/ Villa for the League
-