Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

xterm rebinding of keys

Posted on 1998-02-10
1
Medium Priority
?
569 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 3

Accepted Solution

by:
braveheart earned 200 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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…
Java performance on Solaris - Managing CPUs There are various resource controls in operating system which directly/indirectly influence the performance of application. one of the most important resource controls is "CPU".   In a multithreaded…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Suggested Courses

636 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