tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* summary: script or program to remap the keyboard
@ 1998-01-14 22:45 Jim R Jones
  0 siblings, 0 replies; only message in thread
From: Jim R Jones @ 1998-01-14 22:45 UTC (permalink / raw)
  To: tru64-unix-managers





My orginal question was:

I have been told tht DEC has a program or script which will allow users to
remap the keyboard.  What we have is a number of older workstations with vt
style keyboards on them and new ones that are comming in with pc style
keyboards.   The program as I understand it allows you to remap keys to
achieve the same functionallity on the pc style keyboards as the older
vtkeyboards had.
What I would like to know is the name of the script and program and where
it resides on the system disk.  Any info would be appreciated.

The answers I received were very helpful, I do appreciate all the responses
and since several were duplicate I will not list
all the responses.   But thanks to all that responed to my question.

Response 1

Hi Jim,
     I believe you can use /usr/bin/X11/dxkeycaps which shows you
     the full keyboard. You can click with MB3 the key you want
     to map etc... (ther is a good explanation in the bookreader).
     Hope this helps
     Good luck
     JEAN

Response 2

 man dxkeycaps
  (to be used in conjunction with xmodmap)
---------------------------------------------------------------------------
-
Lucio Chiappetti - IFCTR/CNR - via Bassini 15 - I-20133 Milano (Italy)


Response 3

What you might want to look at is /usr/bin/X11/xev and
/usr/bin/X11/xmodmap.
Yizhong

Response 4

Under X Window System you can use xmodmap to remap any key to the desired
char. Look at
     man xmodmap
     /usr/include/X11/keysymdef.h
I hope this helps.
Carlos Augusto Moreira dos Santos


Response 5

/usr/examples/pc_to_lk_keys.sh
It essentially does xmodmap(1)
Regs,
Simon.

Response 6

The name of the program is /usr/bin/X11/xmodmap.
Below is an example of its use
John Becker

#!/bin/sh
#
# *****************************************************************
# *                                                               *
# *    Copyright (c) Digital Equipment Corporation, 1991, 1995    *
# *                                                               *
# *   All Rights Reserved.  Unpublished rights  reserved  under   *
# *   the copyright laws of the United States.                    *
# *                                                               *
# *   The software contained on this media  is  proprietary  to   *
# *   and  embodies  the  confidential  technology  of  Digital   *
# *   Equipment Corporation.  Possession, use,  duplication  or   *
# *   dissemination of the software and media is authorized only  *
# *   pursuant to a valid written license from Digital Equipment  *
# *   Corporation.                                                *
# *                                                               *
# *   RESTRICTED RIGHTS LEGEND   Use, duplication, or disclosure  *
# *   by the U.S. Government is subject to restrictions  as  set  *
# *   forth in Subparagraph (c)(1)(ii)  of  DFARS  252.227-7013,  *
# *   or  in  FAR 52.227-19, as applicable.                       *
# *                                                               *
# *****************************************************************
#
# HISTORY
#
case $1 in
'-u')
        # is there already PC-style keymappings?
        /usr/bin/X11/xmodmap -pke|grep -q Home
        # if no, then do the xmodmap
        if test $? = 1
        then
         /usr/bin/X11/xmodmap - <<EOF
          keysym Help         = Print Sys_Req
          keysym Menu         = Scroll_Lock Help
          keysym Insert       = Home
          keysym Find         = Insert
          keysym DRemove      = Page_Up
          keysym Next         = Page_Down
          keysym Select       = Delete
          keysym Prior        = End
          keysym KP_0         = KP_Insert KP_0
          keysym KP_Decimal   = KP_Delete KP_Decimal
          keysym KP_1         = KP_End KP_1
          keysym KP_2         = KP_Down KP_2
          keysym KP_3         = KP_Page_Down KP_3
          keysym KP_4         = KP_Left KP_4
          keysym KP_6         = KP_Right KP_6
          keysym KP_Subtract  = KP_Add
          keysym KP_7         = KP_Home KP_7
          keysym KP_8         = KP_Up KP_8
          keysym KP_9         = KP_Page_Up KP_9
          keysym KP_F1        = Num_Lock
          keysym KP_F2        = KP_Divide
          keysym KP_F3        = KP_Multiply
          keysym KP_F4        = KP_Subtract
          add Mod4            = Num_Lock
EOF
         if test $? = 0
         then
          echo "Using PC-style keymaps"
         fi
        fi
     ;;
'-h')
     echo "Usage: pc_to_lk_keys.sh [ -u | -h ]"
        echo "where:"
        echo "  -u  Undo LK-style keymap modifications"
     echo "  -h  Usage summary"
        echo "<default> LK-style keymap modifications"
     ;;
*)
        # is there already LK-style keymappings?
        /usr/bin/X11/xmodmap -pke|grep -q KP_Separator
        # if no, then do the xmodmap
     #  this is the one we use on node flash
        if test $? = 1
        then
         /usr/bin/X11/xmodmap - <<EOF
          keysym Print        = Help
          keysym Scroll_Lock  = Menu
          keysym Insert       = Find
          keysym Home         = Insert
          keysym Page_Up      = DRemove
          keysym Page_Down    = Next
          keysym End          = Prior
          keysym KP_Subtract  = KP_F4
          keysym Num_Lock     = KP_F1
          keysym KP_Divide    = KP_F2
          keysym KP_Multiply  = KP_F3
          keysym KP_Add       = KP_Separator
          keysym BackSpace    = Delete
          keysym KP_0        = KP_0
             keysym KP_1         = KP_1
                keysym KP_2         = KP_2
          keysym KP_3        = KP_3
          keysym KP_4         = KP_4
             keysym KP_5         = KP_5
                keysym KP_6         = KP_6
                keysym KP_7         = KP_7
                keysym KP_8         = KP_8
                keysym KP_9         = KP_9
          keysym KP_Decimal   = KP_Decimal
                clear Mod4
EOF
         if test $? = 0
         then
          echo "Using LK-style keymaps"
         fi
        fi
     ;;
esac

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1998-01-14 22:45 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-01-14 22:45 summary: script or program to remap the keyboard Jim R Jones

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox