[comp.sys.hp] Can I disable with the 'Caps' key from software?

pdwalker@bcarh667.bnr.ca (08/17/90)

I have an HP 9000/345 running HP-UX 6.5.  One of the most fustrating things
I have to put up with is the poorly placed 'Caps' key.  This key is the same
size as the escape key, and is placed just above it.

This is absolutely fustrating when I am editing in vi and I hit 'Caps' rather
than escape.  It usually leaves my files in quite a mess.

What I want to be able to do is disable that key, or possible map it to 
'Esc' as well so that I will no longer have that problem.

Does anyone know of a way that that can be done?  

I use csh, and I run X11R4 if this provides any useful information

(I tried 'xmodmap -e "keysym Caps_Lock = Escape" '.  This cause the 
(Caps key to function as both a Caps and an Escape, and not just
(act as an escape.

Thanks in advance.

	Paul

/****************************************************************************
 * Paul D. Walker               PHONE : (613)765-2590                       *
 * Bell-Northern Research, Ltd. BITNET: pdwalker@bnr.car                    *
 * Ottawa Ontario Canada        USENET: ...!uunet!bnrgate!bcarh667!pdwalker *
 ****************************************************************************/

allyn@sdd.hp.com (Allyn Fratkin) (08/18/90)

In article <3294@bnr-rsc.UUCP>, pdwalker@bcarh667.bnr.ca () writes:
> I use csh, and I run X11R4 if this provides any useful information

i use the hp 7.03 x server and the xmodmap command to remap the keys.
i have the command "xmodmap ~/.keymap" in my startup stuff.  my ~/.keymap
file contains:
-----------------------------------------------------
! i don't like the caps lock key
clear lock

! make the Caps_Lock key act just like ctrl
add control = Caps_Lock

! make the enter key (0x57) the same as escape
keycode 0x57 = Escape
-----------------------------------------------------

this makes Caps act like CTRL, and Enter act like ESC.

not an official response...
-- 
 From the virtual mind of Allyn Fratkin            allyn@sdd.hp.com
                          San Diego Division       - or -
                          Hewlett-Packard Company  uunet!ucsd!hp-sdd!allyn

marki@hp-ptp.HP.COM (Mark Ikemoto) (08/18/90)

Take a small, flat-bladed screwdriver and pop those suckers out!
This is especially easy since the keys are right next to the solid
surface of the keyboard border; it acts as a nice fulcrum for
levering those guys out.

I have the liberated keys scotch-taped above the unused function keys
on the upper right-hand side of my keyboard so I don't lose them.


Mark