Subject: pccons enhancement
To: None <netbsd-bugs@sun-lamp.cs.berkeley.edu>
From: Luke Mewburn <lm@rmit.edu.au>
List: netbsd-bugs
Date: 01/03/1994 13:49:21
Not so much a bugfix as enhancements for pccons:
- turn off default cursor from block (FAT) to underline
- map capslock as ctrl if NO_CAPSLOCK defined.

Personally, I feel that FAT_CURSOR and NO_CAPSLOCK should be stuff
you option in the config file (although my diff directly defines
NO_CAPSLOCK ;), but that's just me.

Luke.

--
*** pccons.c.OLD	Mon Jul 12 21:37:03 1993
--- pccons.c	Tue Dec 21 15:16:35 1993
***************
*** 119,126 ****
  };
  
  /* 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
--- 119,127 ----
  };
  
  /* block cursor so wfj does not go blind on laptop hunting for
  #define	FAT_CURSOR
+ 	the verdamnt cursor -wfj */
+ #define NO_CAPSLOCK
  
  #define	COL		80
  #define	ROW		25
***************
*** 1451,1456 ****
--- 1452,1458 ----
  					num ^= 1;
  					update_led();
  					break;
+ #ifndef NO_CAPSLOCK
  				case CAPS:
  					if (dt & 0x80) {
  						lock_down &= ~CAPS;
***************
*** 1462,1467 ****
--- 1464,1470 ----
  					caps ^= 1;
  					update_led();
  					break;
+ #endif /* !NO_CAPSLOCK */
  				case SCROLL:
  					if (dt & 0x80) {
  						lock_down &= ~SCROLL;
***************
*** 1528,1536 ****
--- 1531,1541 ----
  			case NUM:
  				lock_down &= ~NUM;
  				break;
+ #ifndef  NO_CAPSLOCK
  			case CAPS:
  				lock_down &= ~CAPS;
  				break;
+ #endif /* !NO_CAPSLOCK */
  			case SCROLL:
  				lock_down &= ~SCROLL;
  				break;
***************
*** 1540,1545 ****
--- 1545,1553 ----
  			case ALT:
  				alt_down = 0;
  				break;
+ #ifdef NO_CAPSLOCK
+ 			case CAPS:
+ #endif /* NO_CAPSLOCK */
  			case CTL:
  				ctrl_down = 0;
  				break;
***************
*** 1563,1568 ****
--- 1571,1577 ----
  				num ^= 1;
  				update_led();
  				break;
+ #ifndef NO_CAPSLOCK
  			case CAPS:
  				if (lock_down & CAPS)
  					break;
***************
*** 1570,1575 ****
--- 1579,1585 ----
  				caps ^= 1;
  				update_led();
  				break;
+ #endif /* !NO_CAPSLOCK */
  			case SCROLL:
  				if (lock_down & SCROLL)
  					break;
***************
*** 1589,1594 ****
--- 1599,1607 ----
  			case ALT:
  				alt_down = 0x80;
  				break;
+ #ifdef NO_CAPSLOCK
+ 			case CAPS:
+ #endif /* NO_CAPSLOCK */
  			case CTL:
  				ctrl_down = 1;
  				break;


-- 
``Concealment is never as hard as people think, you          Luke Mewburn
  must understand that. It's action while hiding that's    <lm@rmit.edu.au>
  the hard part''
        -- Coyote, in Kim Stanley Robinson's `Green Mars'

------------------------------------------------------------------------------