home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.linux
- Path: sparky!uunet!mcsun!sun4nl!spider.research.ptt.nl!freyr!bjl
- From: bjl@loki.research.ptt.nl (Ben Lippolt)
- Subject: Here is the Caps <-> Ctrl patch (was: Re: What is the Caps Lock patch?)
- Message-ID: <bjl.715417871@freyr>
- Sender: usenet@spider.research.ptt.nl (USEnet News)
- Nntp-Posting-Host: loki.research.ptt.nl
- Reply-To: B.J.Lippolt@research.ptt.nl
- Organization: PTT Research
- References: <1992Sep2.020805.14048@cc.umontreal.ca>
- Date: Wed, 2 Sep 1992 07:11:11 GMT
- Lines: 86
-
- duperval@ERE.UMontreal.CA (Duperval Laurent) writes:
-
- >Hi there,
-
- >I vaguely remember one of the posts on this group mentioning something about a
- >patch that changes the Caps Lock key into the Ctrl key and Vice versa. Can
- >someone one there tell me how to do this please?
-
- Here it is. Apply this patch to /usr/src/linux/kernel/chr_drv/keyboard.c.
- It should work for almost all versions. You might get some 'offset' messages
- but you can ignore them.
-
-
- Ben Lippolt
-
- ---- keyboard.cdif ----
- *** keyboard.c~ Fri Jul 31 19:50:04 1992
- --- keyboard.c Mon Aug 10 22:54:46 1992
- ***************
- *** 1247,1253 ****
- do_self,do_self,do_self,do_self, /* 10-13 q w e r */
- do_self,do_self,do_self,do_self, /* 14-17 t y u i */
- do_self,do_self,do_self,do_self, /* 18-1B o p } ^ */
- ! enter,ctrl,do_self,do_self, /* 1C-1F enter ctrl a s */
- do_self,do_self,do_self,do_self, /* 20-23 d f g h */
- do_self,do_self,do_self,do_self, /* 24-27 j k l | */
- do_self,do_self,lshift,do_self, /* 28-2B { para lshift , */
- --- 1247,1253 ----
- do_self,do_self,do_self,do_self, /* 10-13 q w e r */
- do_self,do_self,do_self,do_self, /* 14-17 t y u i */
- do_self,do_self,do_self,do_self, /* 18-1B o p } ^ */
- ! enter,caps,do_self,do_self, /* 1C-1F enter ctrl a s */
- do_self,do_self,do_self,do_self, /* 20-23 d f g h */
- do_self,do_self,do_self,do_self, /* 24-27 j k l | */
- do_self,do_self,lshift,do_self, /* 28-2B { para lshift , */
- ***************
- *** 1254,1260 ****
- do_self,do_self,do_self,do_self, /* 2C-2F z x c v */
- do_self,do_self,do_self,do_self, /* 30-33 b n m , */
- do_self,slash,rshift,star, /* 34-37 . - rshift * */
- ! alt,do_self,caps,func, /* 38-3B alt sp caps f1 */
- func,func,func,func, /* 3C-3F f2 f3 f4 f5 */
- func,func,func,func, /* 40-43 f6 f7 f8 f9 */
- func,num,scroll,cursor, /* 44-47 f10 num scr home */
- --- 1254,1260 ----
- do_self,do_self,do_self,do_self, /* 2C-2F z x c v */
- do_self,do_self,do_self,do_self, /* 30-33 b n m , */
- do_self,slash,rshift,star, /* 34-37 . - rshift * */
- ! alt,do_self,ctrl,func, /* 38-3B alt sp caps f1 */
- func,func,func,func, /* 3C-3F f2 f3 f4 f5 */
- func,func,func,func, /* 40-43 f6 f7 f8 f9 */
- func,num,scroll,cursor, /* 44-47 f10 num scr home */
- ***************
- *** 1279,1285 ****
- none,none,none,none, /* 90-93 br br br br */
- none,none,none,none, /* 94-97 br br br br */
- none,none,none,none, /* 98-9B br br br br */
- ! none,unctrl,none,none, /* 9C-9F br unctrl br br */
- none,none,none,none, /* A0-A3 br br br br */
- none,none,none,none, /* A4-A7 br br br br */
- none,none,unlshift,none, /* A8-AB br br unlshift br */
- --- 1279,1285 ----
- none,none,none,none, /* 90-93 br br br br */
- none,none,none,none, /* 94-97 br br br br */
- none,none,none,none, /* 98-9B br br br br */
- ! none,uncaps,none,none, /* 9C-9F br unctrl br br */
- none,none,none,none, /* A0-A3 br br br br */
- none,none,none,none, /* A4-A7 br br br br */
- none,none,unlshift,none, /* A8-AB br br unlshift br */
- ***************
- *** 1286,1292 ****
- none,none,none,none, /* AC-AF br br br br */
- none,none,none,none, /* B0-B3 br br br br */
- none,none,unrshift,none, /* B4-B7 br br unrshift br */
- ! unalt,none,uncaps,none, /* B8-BB unalt br uncaps br */
- none,none,none,none, /* BC-BF br br br br */
- none,none,none,none, /* C0-C3 br br br br */
- none,none,none,none, /* C4-C7 br br br br */
- --- 1286,1292 ----
- none,none,none,none, /* AC-AF br br br br */
- none,none,none,none, /* B0-B3 br br br br */
- none,none,unrshift,none, /* B4-B7 br br unrshift br */
- ! unalt,none,unctrl,none, /* B8-BB unalt br uncaps br */
- none,none,none,none, /* BC-BF br br br br */
- none,none,none,none, /* C0-C3 br br br br */
- none,none,none,none, /* C4-C7 br br br br */
-