Bug 4861 - XTerm VT100.translations is non-functional inside app-defaults
Summary: XTerm VT100.translations is non-functional inside app-defaults
Status: RESOLVED NOTABUG
Alias: None
Product: xorg
Classification: Unclassified
Component: App/xterm (show other bugs)
Version: 6.8.99.901 (6.9 RC1)
Hardware: x86 (IA32) Linux (All)
: high critical
Assignee: Xorg Project Team
QA Contact:
URL:
Whiteboard:
Keywords: regression
Depends on:
Blocks:
 
Reported: 2005-10-24 08:51 UTC by Robert M. Stockmann
Modified: 2005-10-25 07:22 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments

Description Robert M. Stockmann 2005-10-24 08:51:58 UTC
When adding the following into /usr/X11R6/lib/X11/app-defaults/XTerm :   
   
*oldXtermFKeys: true   
*VT100.translations: #override \n\   
        Ctrl <Key>F1: string(0x1b) string(0x43) string("[11~") \n\   
        Ctrl <Key>F2: string(0x1b) string(0x43) string("[12~") \n\   
        Ctrl <Key>F3: string(0x1b) string(0x43) string("[13~") \n\   
        Ctrl <Key>F4: string(0x1b) string(0x43) string("[14~") \n\   
        Ctrl <Key>F5: string(0x1b) string(0x43) string("[15~") \n\   
        Ctrl <Key>F6: string(0x1b) string(0x43) string("[17~") \n   
   
only the first resource "*oldXtermFKeys: true"  works like expected.   
The lines with *VT100.translations are simply ignored. This certainly has   
something todo with the migration of Xft from XFree86 into xorg. Please fix   
this soon. Allthough the x.org project has flagged xterm as old garbage, it   
still is an essential component for business critical applications. Xterm is 
the industry standard workhorse inside X environments. Please don't screw up  
xterm.   
   
malfunctioning version details :    
Linux distribution : Mandriva 2005 LE, aka mandrake 10.2 i586   
x.org version : libxorg-x11-6.8.2-7mdk   
Xft version:    libXft.so.2.1.2   
xterm version : xterm-200-2mdk   
   
Please take note that on Mandrake 10.1 the above problem doe not occur :   
   
functional version details :    
Linux distribution : Mandrakelinux release 10.1 (Official) for i586   
x.org version : libxorg-x11-6.7.0-4mdk   
Xft version:    libXft.so.2.1.2   
xterm version : xterm-194-1mdk   
   
Regards,   
   
Robert   
--   
Robert M. Stockmann - RHCE   
Network Engineer - UNIX/Linux Specialist   
crashrecovery.org  stock@stokkie.net
Comment 1 Robert M. Stockmann 2005-10-24 10:10:00 UTC
The above problem also is present inside :  
  
malfunctioning version details :     
Linux distribution : Mandriva Linux release 2006.0 (Official) for i586 
x.org version : libxorg-x11-6.9-1.cvs20050915.2mdk    
Xft version:    libXft.so.2.1.2    
xterm version : xterm-203-1mdk 
 
Robert 
-- 
Robert M. Stockmann - RHCE 
Network Engineer - UNIX/Linux Specialist 
crashrecovery.org  stock@stokkie.net 
Comment 2 Thomas E. Dickey 2005-10-24 17:15:20 UTC
It's more likely the window manager intercepting the control-function-keys.
KDE seems to do this, for instance.
Comment 3 Thomas E. Dickey 2005-10-24 17:27:03 UTC
Comparing with fvwm, I'm pretty sure that's the problem.
(KDE might document this behavior).
Comment 4 Alan Coopersmith 2005-10-25 10:12:54 UTC
Xorg 6.9 bugs need to be filed against "xorg", not the separate (and mostly 
dead) "xapps" project.
Comment 5 Robert M. Stockmann 2005-10-26 00:22:37 UTC
Wow, Thomas E. Dickey, you are absolutely right. In the heat of the battle I 
forgot to do this on the new mandrake versions : 
 
The file /usr/X11R6/lib/X11/app-defaults/XTerm should be added 
with the following additions at the bottom : 
 
*oldXtermFKeys: true 
*VT100.translations: #override \n\ 
        Ctrl <Key>F1: string(0x1b) string(0x43) string("[11~") \n\ 
        Ctrl <Key>F2: string(0x1b) string(0x43) string("[12~") \n\ 
        Ctrl <Key>F3: string(0x1b) string(0x43) string("[13~") \n\ 
        Ctrl <Key>F4: string(0x1b) string(0x43) string("[14~") \n\ 
        Ctrl <Key>F5: string(0x1b) string(0x43) string("[15~") \n\ 
        Ctrl <Key>F6: string(0x1b) string(0x43) string("[17~") \n 
 
After making these adjustments, also make sure, when running the 
KDE Desktop, the following is correctly configured : 
 
Menu==>System=>Configuration==>KDE==>Accessibility==>Keyboard Shortcuts 
 
Select the Tab 'Shortcut Sequences' and remove all the 
"Cntrl+F1", to "Cntrl+F6" Actions, 
at "Desktop Switching" with "Switch to Desktop 1" until 6 
 
In general, one should remove all Cntrl+F1 to Cntrl+F6 actions from ones 
Desktop. Other Desktops as KDE might have the same problems.  
 
I'm sorry to have caused this unneeded trouble in here. But never the less my 
conclusion is that xterm is one of its kind, and certainly has not yet been 
replaced with a modern terminal which covers all the features of xterm. 
 
Regards, 
 
Robert 
--    
Robert M. Stockmann - RHCE    
Network Engineer - UNIX/Linux Specialist    
crashrecovery.org  stock@stokkie.net 


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.