Subject: pccons niggles & patches to change
To: None <current-users@sun-lamp.cs.berkeley.edu>
From: Luke Mewburn <lm@rmit.edu.au>
List: current-users
Date: 02/15/1994 13:14:09
It's a pain for me each time I sup to have to undef FAT_CURSOR in pccons.c
all the time. I don't feel this should be hard defined inside the source in
this way. A solution: rename FAT_CURSOR to THIN_CURSOR, change the code
accordingly, so I can do `options THIN_CURSOR' in my kernel config.
Also, a long long time ago I hacked the capslock key to become a control
key if you defined something (you could get caps by using Right shift & caps.)
Here's the simple varient of that, caps is just a ctrl key (there's no way to
get caps with it.) Just do an `options CAPS_IS_CTL' in yer kernel define.
(Wait's for flames on ``run X and use xmodmap''... hmm, if I ran X i would use
xmodmap, infact that's what I do at work)
Here's my diff file (for renaming FAT_CURSOR, and putting in code
for CAPS_IS_CTL.) Can this be merged into current? (It doesn't change what
people get unless they ask for it, and I know a few other (local) current
users who hate fat_cursor, and like my ctrl hack.)
*** pccons.c.~1~ Tue Feb 15 13:09:48 1994
--- pccons.c Tue Feb 15 13:10:45 1994
***************
*** 123,132 ****
pcprobe, pcattach, "pc",
};
- /* block cursor so wfj does not go blind on laptop hunting for
- the verdamnt cursor -wfj */
- #define FAT_CURSOR
-
#define COL 80
#define ROW 25
#define CHR 2
--- 123,128 ----
***************
*** 643,654 ****
outb(addr_6845+1, pos>> 8);
outb(addr_6845, 15);
outb(addr_6845+1, pos);
! #ifdef FAT_CURSOR
outb(addr_6845, 10);
outb(addr_6845+1, 0);
outb(addr_6845, 11);
outb(addr_6845+1, 18);
! #endif FAT_CURSOR
if (a == 0)
timeout((timeout_t)cursor, (caddr_t)0, hz/10);
#ifdef XSERVER /* 15 Aug 92*/
--- 639,650 ----
outb(addr_6845+1, pos>> 8);
outb(addr_6845, 15);
outb(addr_6845+1, pos);
! #ifndef THIN_CURSOR
outb(addr_6845, 10);
outb(addr_6845+1, 0);
outb(addr_6845, 11);
outb(addr_6845+1, 18);
! #endif /* !THIN_CURSOR */
if (a == 0)
timeout((timeout_t)cursor, (caddr_t)0, hz/10);
#ifdef XSERVER /* 15 Aug 92*/
***************
*** 1523,1528 ****
--- 1519,1525 ----
num ^= 1;
update_led();
break;
+ #ifndef CAPS_IS_CTL
case CAPS:
if (dt & 0x80) {
lock_down &= ~CAPS;
***************
*** 1534,1539 ****
--- 1531,1537 ----
caps ^= 1;
update_led();
break;
+ #endif /* !CAPS_IS_CTL */
case SCROLL:
if (dt & 0x80) {
lock_down &= ~SCROLL;
***************
*** 1600,1608 ****
--- 1598,1608 ----
case NUM:
lock_down &= ~NUM;
break;
+ #ifndef CAPS_IS_CTL
case CAPS:
lock_down &= ~CAPS;
break;
+ #endif /* !CAPS_IS_CTL */
case SCROLL:
lock_down &= ~SCROLL;
break;
***************
*** 1612,1617 ****
--- 1612,1620 ----
case ALT:
alt_down = 0;
break;
+ #ifdef CAPS_IS_CTL
+ case CAPS:
+ #endif /* CAPS_IS_CTL */
case CTL:
ctrl_down = 0;
break;
***************
*** 1635,1640 ****
--- 1638,1644 ----
num ^= 1;
update_led();
break;
+ #ifndef CAPS_IS_CTL
case CAPS:
if (lock_down & CAPS)
break;
***************
*** 1642,1647 ****
--- 1646,1652 ----
caps ^= 1;
update_led();
break;
+ #endif /* !CAPS_IS_CTL */
case SCROLL:
if (lock_down & SCROLL)
break;
***************
*** 1661,1666 ****
--- 1666,1674 ----
case ALT:
alt_down = 0x80;
break;
+ #ifdef CAPS_IS_CTL
+ case CAPS:
+ #endif /* CAPS_IS_CTL */
case CTL:
ctrl_down = 1;
break;
--
"When I left the monastery, it was not in pursuit of scholarship,
however, but in pursuit of an unparalleled career in crime.
It was quite a shock for me to discover that crime was so easy Luke Mewburn
that it was boring. [ ... ] Solving crime, I had belatedly <lm@rmit.edu.au>
discovered, was at least a hundred times more difficult than
committing it, so I hung the sign of a half-closed eye above
my door and I have never regretted it."
-- Li Kao, in Barry Hughart's "Bridge of Birds".
------------------------------------------------------------------------------