GraphOn Support Forums
Welcome, Guest
Please Login or Register.    Lost Password?
SUN: How do I map Cut/Copy/Paste/etc to my GO-Global keymap? (1 viewing) (1) Guest
Go to bottom Post Reply Favoured: 0
TOPIC: SUN: How do I map Cut/Copy/Paste/etc to my GO-Global keymap?
#8
troym (Admin)
Admin
Posts: 202
graphgraph
User Online Now Click here to see the profile of this user
Gender: Male Birthdate: 1973-01-14
SUN: How do I map Cut/Copy/Paste/etc to my GO-Global keymap? 5 Years, 2 Months ago Karma: 1  
Generally speaking, this can be done using 'xmodmap' within the X session. For example, to map the "F10" key on the PC keyboard to the Sun "Copy" key, you could use:

Code:

$ xmodmap -e 'keycode 121 = F16'
You can obtain the proper keycodes to use by running the 'xev' program (/usr/openwin/demo/xev on Solaris) and pressing the key that you want the keycode for. The list of Sun keys and their corresponding keysyms are: Stop - F11 Again - F12 Props - F13 Undo - F14 Front - F15 Copy - F16 Open - F17 Paste - F18 Find - F19 Cut - F20 Under Openwindows, you can remap some of the Sun function keys as follows:
Code:

# Map SunCopy to F5 xmodmap -e 'keysym F5 = L6' # Map SunPaste to F6 xmodmap -e 'keysym F6 = L8' # Map SunCut to F7 xmodmap -e 'keysym F7 = L10' # Map SunFront to F8 xmodmap -e 'keysym F8 = L5'
For CDE, you can use the following to map the Cut, Copy, and Paste keys:
Code:

# Map SunCopy to F5 xmodmap -e "keysym F5 = osfCopy" # Map SunPaste to F6 xmodmap -e "keysym F6 = osfPaste" # Map SunCut to F7 xmodmap -e "keysym F7 = osfCut"
You can also change $HOME/.dt/user.dtwmrc for "front" functionality:
Code:

Keys DtKeyBindings { # Stop Alt+F4 from killing windows Alt<Key>F4 icon|window|ifkey f.nop # Set Ctrl+Up_Arrow to SunFront Key function Ctrl<Key>Up window|ifkey f.raise_lower }
 
Report to moderator   Logged Logged  
 
Troy Morrison
troy @ graphon.com
GraphOn Corporation
  The administrator has disabled public write access.
Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop