Backspace when i hit 5 key.

Tim Waugh twaugh "at"
Tue, 14 Nov 2000 14:02:10 +0000

On Thu, Nov 09, 2000 at 01:11:45PM -0600, Tom Hancock wrote:

> This is a horrible hack, I know, but until I learn exactly what's
> going on here this is the best I can do.  I *think* it has something
> to do with SlickEdit being statically bound to the Motif libraries
> (?).  If you (or anybody) can shed some more light on this, I would
> appreciate it.

Okay, I have dug a little deeper into this.

On my Red Hat Linux 6.2 system here, if I start a VNC server and
use a VNC viewer on it, pressing the '5' key produces a '5'.

If I, inside the VNC session, run 'xmodmap /etc/X11/xinit/Xmodmap',
'5' will now act as backspace.

/etc/X11/xinit/Xmodmap contains:

keycode 22 = BackSpace

(and nothing else), and Xmodmap gets read by the xinitrc stuff.  As a
consequence, starting the server with 'vncserver' works fine, but
starting it by putting ':1 local /usr/bin/Xvnc :1' in
/etc/X11/xdm/Xservers causes 5 to act like backspace.

If you start vncserver and do 'xmodmap -pk | less' you will see why
this happens..

    KeyCode     Keysym (Keysym) ...
    Value       Value   (Name)  ...

     17         0x0030 (0)      0x0029 (parenright)
     18         0x0031 (1)      0x0021 (exclam)
     19         0x0032 (2)      0x0040 (at)
     20         0x0033 (3)      0x0023 (numbersign)
     21         0x0034 (4)      0x0024 (dollar)
     22         0x0035 (5)      0x0025 (percent)
     23         0x0036 (6)      0x005e (asciicircum)

But why the keycodes are set up like this in the VNC server I'm not
quite sure..

I just checked on a Red Hat Linux 7 system, and the default Xmodmap
file (in /etc/X11/Xmodmap) has no non-comment lines, so this all works
fine, and the 5-is-backspace problem doesn't happen.


[demime 0.97b removed an attachment of type application/pgp-signature]
To unsubscribe, send a message with the line: unsubscribe vnc-list
to majordomo "at"
See also: