Solved

xterm rebinding of keys

Posted on 1998-02-10
1
519 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Audit HISTFILE for all users on AIX 9 108
Generate FIPS 140-2 Public Key on Unix 5 67
Tracking which app / process changes permission of a file in SOlaris 10 4 104
ftpcommand 2 56
My previous tech tip, Installing the Solaris OS From the Flash Archive On a Tape (http://www.experts-exchange.com/articles/OS/Unix/Solaris/Installing-the-Solaris-OS-From-the-Flash-Archive-on-a-Tape.html), discussed installing the Solaris Operating S…
FreeBSD on EC2 FreeBSD (https://www.freebsd.org) is a robust Unix-like operating system that has been around for many years. FreeBSD is available on Amazon EC2 through Amazon Machine Images (AMIs) provided by FreeBSD developer and security office…
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…
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.

920 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

18 Experts available now in Live!

Get 1:1 Help Now