[comp.sys.hp] caps lock disable?

eli@spdcc.COM (Steve Elias) (12/05/89)

is there a way to disable the silly caps lock key on my 
hp workstation 98788A running HP-UX (v7?) ???



-- 


-- Steve Elias ; eli@spdcc.com ; 6179325598 ; 5086717556 ; { *disclaimer(); }
                

beshers@cs.cs.columbia.edu (Clifford Beshers) (12/07/89)

In article <794@ursa-major.SPDCC.COM> eli@spdcc.COM (Steve Elias) writes:


   is there a way to disable the silly caps lock key on my 
   hp workstation 98788A running HP-UX (v7?) ???

If you are using X, you can use xmodmap to  change things around
anyway you like.  Here's what I do...

***************Cut here*************************************************
! This file is used as input to xmodmap with X11 on an HP
! 9000/300 workstation.  It rebinds some keys to make life a little
! more livable.  If you don't want a particular rebinding, just
! comment it out.
!
! man xmodmap is a good source of information on what is in this file.
!
! Notes on how to create this file:
! Use xprkbd, xmodmap, and $X11SRC/examples/xev/xev.
! xev is particularly useful: run it, scan out a window and hit keys; it
! reports the keycode and one of the bound keysyms to stdout.
! xprkbd lists the whole keyboard, including the multiple bindings for
! modifier keys.  xmodmap with no arguments (or -p) prints out the current
! modifier list.
!
!
! One point about xmodmap.  If you want the shifted version of a key
! to be different, then just list that keysym after the first one,
! i.e. xmodmap -e "keycode 101 = Delete Backspace" would make shift-delete
! a backspace.
!
!
! On the HP, the following keycodes have key caps as listed:
!
!     101  Backspace
!      10  Extend Char
!      55  Caps
!      87  Print/Enter
!      71  Backquote/Tilde -- above the Tab key.
!      87  Insert Line  --  to the right of Backspace.
!
! I prefer using ``keycode'' over ``keysym'' so that I can rerun the file to
! fix up my keyboard.
!
!
! Set the backspace key to generate Delete.  You can get
! backspace with ^H  (C-h in Emacs terms).
keycode 101 = Delete
!
! Flush all caps lock bindings and make the caps lock a meta key.
! You can use this instead of ESC in Emacs as a real genuine
! meta key.  It works like the shift key in that you have to hold
! it down and hit another key  for it to take effect.
!
! The Left Extend Char key is also a meta key.
!
clear Lock
clear Mod1
keycode 55 = Meta_L
keycode 10 = Meta_R
keycode 11 = Kanji
! Just a dummy value.
add Mod1 = Meta_L Meta_R
!
!
!  Make the Print/Enter key a caps lock.
keycode 87 = Caps_Lock
add Lock = Caps_Lock
!
! Switch Escape and quoteleft/tilde keys.
!
! Having the quote/tilde key where the escape key is supposed to
! be is a nuisance. Put escape there instead.
keycode 71 = Escape
!
! Copy the quoteleft/tilde key to the insert line key.  More convenient.
keycode 102 = quoteleft asciitilde


--
-----------------------------------------------
Cliff Beshers
Columbia University Computer Science Department
beshers@cs.columbia.edu