Solved

xterm rebinding of keys

Posted on 1998-02-10
1
525 Views
Last Modified: 2008-03-10
Hi, I would like to rebind keys to strinmsg and functions
in my xterm on SGI

Here is a sample Xdefault
*VT100.Translations: #override <Key>F6: keymap(function)
*VT100.functionKeymap.translations: \
    <Key>F1: insert-selection(PRIMARY, CUT_BUFFER0) \n\
    <Key>F2: string("win\n") \n\
    <Key>F3: string("hinv\n") \n\
    <Key>F4: string("netscape\n") \n\
    <Key>F5: string("\023") \n\
    <Key>F6: string("\021") \n\
    <Key>F7: string("\032") \n\
    <Key>F8: string("\003") \n\
    <Key>F9: string("pro-x\n") \n\
    <Key>F10: string("pro-xm\n") \n\
    <Key>F11: string("starid\n") \n\
    <Key>F12: string("starinfo\n") \n\
    <Key>Prior:scroll-back(1,halfpage) \n\
    <Key>Next:scroll-forw(1,halfpage) \n\
    <Key>Insert:insert-selection(PRIMARY,CUT_BUFFER0) \n\

The problem is at present I need to type F6 to activate
the bindings. Is there a better way to do it properly???

Thanks

0
Comment
Question by:yck
1 Comment
 
LVL 3

Accepted Solution

by:
braveheart earned 100 total points
ID: 2008785
You could always override each of the selected keys in the same way that you have overridden F6. However, you might prefer to retain some method to return to the default settings, in which case, the above is the method to follow. Note however, that you would need to redefine an additional key which would invoke another keymap function to reset all the above to their original default settings.
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction Regular patching is part of a system administrator's tasks. However, many patches require that the system be in single-user mode before they can be installed. A cluster patch in particular can take quite a while to apply if the machine…
Every server (virtual or physical) needs a console: and the console can be provided through hardware directly connected, software for remote connections, local connections, through a KVM, etc. This document explains the different types of consol…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

832 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question