Your message dated Mon, 19 Jun 2006 15:45:35 +1000
with message-id <[EMAIL PROTECTED]>
and subject line Bug#306554: gnome-terminal doesn't honor xmodmap settings
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--- Begin Message ---
Package: gnome-terminal
Version: 2.8.2-2
Severity: normal

With xmodmap, I defined:

keycode 100 = Left 0x0001

so that when I press Shift+Left, I get a Ctrl-A character.
Indeed xev says:

KeyPress event, serial 26, synthetic NO, window 0x5800001,
    root 0x25, subw 0x0, time 2207921486, (89,65), root:(348,250),
    state 0x1, keycode 75 (keysym 0x1, (no name)), same_screen YES,
                           ^^^^^^^^^^
    XLookupString gives 1 bytes:  ""

and this works without any problem in xterm, rxvt, mlterm and emacs.
But gnome-terminal does nothing.

-- System Information:
Debian Release: 3.1
  APT prefers testing
  APT policy: (900, 'testing'), (200, 'unstable')
Architecture: powerpc (ppc)
Kernel: Linux 2.6.11
Locale: LANG=POSIX, LC_CTYPE=en_US.ISO8859-1 (charmap=ISO-8859-1)

Versions of packages gnome-terminal depends on:
ii  gnome-control-center     1:2.8.2-3       The GNOME Control Center for GNOME
ii  libatk1.0-0              1.8.0-4         The ATK accessibility toolkit
ii  libbonobo2-0             2.8.1-2         Bonobo CORBA interfaces library
ii  libc6                    2.3.2.ds1-21    GNU C Library: Shared libraries an
ii  libgconf2-4              2.8.1-5         GNOME configuration database syste
ii  libglade2-0              1:2.4.2-2       library to load .glade files at ru
ii  libglib2.0-0             2.6.4-1         The GLib library of C routines
ii  libgnome2-0              2.8.1-2         The GNOME 2 library - runtime file
ii  libgnomeui-0             2.8.1-3         The GNOME 2 libraries (User Interf
ii  libgtk2.0-0              2.6.4-1         The GTK+ graphical user interface 
ii  liborbit2                1:2.12.1-1      libraries for ORBit2 - a CORBA ORB
ii  libpango1.0-0            1.8.1-1         Layout and rendering of internatio
ii  libpopt0                 1.7-5           lib for parsing cmdline parameters
ii  libstartup-notification0 0.8-1           library for program launch feedbac
ii  libvte4                  1:0.11.12-1     Terminal emulator widget for GTK+ 
ii  libx11-6                 4.3.0.dfsg.1-12 X Window System protocol client li
ii  scrollkeeper             0.3.14-9.1      A free electronic cataloging syste
ii  xlibs                    4.3.0.dfsg.1-12 X Keyboard Extension (XKB) configu

-- no debconf information


--- End Message ---
--- Begin Message ---
On Sun, Jun 18, 2006 at 08:48:04PM +0200, Vincent Lefevre wrote:

Hi Vincent!

> Yes, the behavior has changed[*]: the other GTK apps now have the same
> behavior as gnome-terminal.

I've spent a few hours more looking at this. The reason it doesn't work
is that gtk's gdk_keyval_to_unicode() function returns 0 for
control/non-printing characters.

However, salvation is at hand!  There is a mechanism to encode a Unicode
character directly in an X keysym, this is done by a script visible at
http://necrotic.deadbeast.net/svn/xorg-x11/trunk/app/xterm/unicode/convmap.pl.

The relevant part is: "So to get Unicode character U+ABCD you can
directly use keysym 0x1000abcd."

gdk_keyval_to_unicode() also supports this.  I've tried mapping to
0x1000001 and this successfully passes a ^A in xterm, rxvt and GTK apps.
Since this seems to be the appropriate way of doing it, I'm closing this
bug.


   Vince

-- 
  Vincent Ho

"If we hit that bullseye, the rest of the dominos will fall like a house
of cards. Checkmate."

--- End Message ---

Reply via email to