Solved

xterm rebinding of keys

Posted on 1998-02-10
1
509 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
Comment Utility
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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Hello fellow BSD lovers, I've created a patch process for patching openjdk6 for BSD (FreeBSD specifically), although I tried to keep all BSD versions in mind when creating my patch. Welcome to OpenJDK6 on BSD First let me start with a little …
Let's say you need to move the data of a file system from one partition to another. This generally involves dismounting the file system, backing it up to tapes, and restoring it to a new partition. You may also copy the file system from one place to…
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.:
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

772 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now