How to remap a single key to a CTRL'ed key in X ?

How to remap a single key to a CTRL'ed key in X ?

Post by Holger Schem » Wed, 02 Feb 1994 22:03:11



Hello!

I have the following problem:

I want to remap a key under XFree86 so that it is remapped to a
control-key-sequence, e.g. every time I press the 'a' key, all
X programs recognize it as, say, 'CTRL-z'.
It seems that this cannot be done with the regular '.Xmodmap' file
or the xmodmap program, because I can define what should happen when
I press <key>, Shift-<key>, Alt-<key> and Control-<key>, but I cannot
(I think so..) define that every <key1> should be defined as a
<qualifier>-<key2>.

The goal of all this is to remap the 'Delete' key to 'Ctrl-d', because
under X both the 'Delete' and the 'Backspace' key produce a "delete the
character left of the cursor", but no key produces  a "delete the character
that is marked by the cursor", which is done by Ctrl-d (When I use the
.Xmodmap keysym 'DRemove' or 'apLineDel', it is only recognized by xterm,
while Ctrl-d is recognized by nearly every X program).

If anyone knows anything about what to do - mail me or post it, please!

Thanks in advance!

Greetings
           Holger

--
  // Holger Schemel                 \\/   |   Use the Amiga or

 
 
 

How to remap a single key to a CTRL'ed key in X ?

Post by Andries Brouw » Thu, 03 Feb 1994 02:01:48


...

Quote:>The goal of all this is to remap the 'Delete' key to 'Ctrl-d'

...

Have you tried
        xmodmap -e "keysym Delete = 0x04"
?

 
 
 

1. Remapping Keys (want delete key to delete etc!)

Hi,

I would have thought linux being Intel based that the keyboard mappings would
work "correctly".  I have 4 linux books and none help me in this.

I have created a ".input.rc" which gets my full screen bash shell working much
better with home, end and delete keys working (I was following a poor example
without any explanations).  This stuffs up or does not work correctly in
xwindows, xterm etc.

Question 1
~~~~~~~
Can I up the keyboard repeat rate from the current snails pace?

Question 2
~~~~~~~
Surely I can download something from somewhere or get information on the
mapping of keys to "normal" PC mappings.  Unless linux wants to only attract
unix people it would seem to me that it will need to correct this problem....

Thanks for any help,
Dennis

----------------------------

Melbourne, AUSTRALIA.

http://www.labyrinth.net.au/~dbareis/index.htm

 - Contains heaps of my own FREE software (OS/2, Windows, DOS & Linux):
   * PPWIZARD (HTML/REXX/generic preprocessor - #define, #include, #import, #if)
     Powerful macros, programmable, import SQL, auto tag examples, Text to HTML, template/style sheet design.
     You WILL NOT find an easier to use or more powerful preprocessor than PPWIZARD.
     Tested on OS/2, Windows, DOS & Linux (probably any Unix OK - if not help me make it so).
   * Icon for single OS/2 archive on following boot (also auto archive every 'x' days).
   * REXX "compiler" - Many options, compresses, encrypts (no one can see/modify source).
   * Program manipulation by Window or Switch list title (with wildcards)
   * Prevent a floppy in boot drive stopping boot off hard disk.
   * Heaps more...
 - Some source code and programmers links.  Regina Information (including porting from OS/2)
   * Pure REXX code for CRC16 & CRC32 routines.
 - Heaps of COMMENTED OS/2, HTML, Java and other links
----------------------------

2. Device permissions problem

3. Disabling Power down Scroll Lock hot key OR how to remap keys

4. merge/windows311 on the ODT5.04

5. How to disable or remap ctrl-z key (suspend)

6. Electronic Commerce and Security Applications

7. remapping "fn" and "ctrl" keys

8. automatic FTP w/cron & unknown subdirs

9. Function of Keys ALT-CTRL key combinations

10. Need keyboard with <CTRL> key next to <A> key.

11. How do I map Compose key to a ctrl-key combo?

12. can i remap some keys on keyboard? key(for window start button) with ctrl key?

13. how to distinguish enter key and key pad enter key?