Red Hat Bugzilla – Bug 141675
ALT-f inputs character rather than control code
Last modified: 2007-11-30 17:10:56 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.5)
Description of problem:
In bash, pressing ALT-f should move the cursor forward one word. With
this version of xterm, it instead inserts ï¿½.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. open xterm
2. press ALT-f
Actual Results: ï¿½ is entered at prompt
Expected Results: cursor should jump to next word
Hmm, now that I think about this one some more, I think this is
an intentional upstream xterm behaviour change which can be
configured in order to get the deprecated legacy behaviour back.
I'm not 100% sure of this however, but it seems to ring a slight
bell. I'll have a look through previously reported xterm bugs
to see if I can find any similar issues, and if not I'll add
the xterm author to CC for his thoughts.
The ï¿½ doesn't look familiar (perhaps that's an interpretation,
since the locale noted is non-UTF-8).
Most of the recent problem reports relating to Alt have been
due to some problems with the X libraries which make the Alt
(Meta) key now longer work as reliably as it did.
A little googling finds this similar issue:
which can be worked around by setting the following resource:
on the down side, this means the xterm can't be used for direct 8 bit
input (although iirc, using the compose key will still work). On the
positive side, the Alt/Meta emacs bindings work again.
There's also metaSendsEscape
xterm seems quite broken with respect to the Alt key currently. Alt-f
and Alt-x give strange characters rather than sending the expected
control string, which breaks emacs and command line editing amongst
other things. The fix in Comment #3 won't work, XTerm*eightBitInput:
false is the default.
That'll teach me to be a sceptic, the fix mention in Comment #3 does
indeed work (I'd forgotten to xrdb). See also Bug 13505.
Sorry, I mean Bug 135505 in Comment #6
Fixed in rawhide xterm.