Re: xmodmap, readline, and ye olde meta key
Re: xmodmap, readline, and ye olde meta key
- Subject: Re: xmodmap, readline, and ye olde meta key
- From: Richard Cobbe <email@hidden>
- Date: Fri, 31 Dec 2010 07:34:15 -0500
- Mail-followup-to: email@hidden
On Fri, Dec 31, 2010 at 12:33:30AM -0500, James K. Lowden wrote:
> Greetings,
>
> I got a brand new MacBook Pro running 10.6.5 for Christmas. I'm having a
> little trouble understanding how X and xterms are initialized, and what I
> can and can't expect to work. My search of this list's archives finds
> many references to readline, but most of them seem to have to do with
> emacs or some Java thing.
>
> My issue is with bash. Specifically, I'd like:
>
> 1. move-by-word to work by pressing alt-f and alt-b
If by "alt" you mean "command", then this works right out of the box (but
see below). If by "alt" you mean "option", then additional effort is
necessary. I don't know that I agree with Jeremy that .inputrc is the
right place to do this -- is there a way to modify key bindings in bash
when running in an xterm but not, for instance, in Terminal.app? I see
from readline's manpage that you can write conditionals in .inputrc that
check the value of $TERM, but that's not very robust. In my case, $TERM is
xterm in an xterm, and xterm-color in Terminal.app, so that's no good.
For me, command = meta in X clients right out of the box, and I'm pretty
sure I'm not playing xmodmap games. However, note that if you run a uxterm
(or otherwise enable utf-8), command is no longer meta. I don't have time
right now to look up the details, but there should be a conversation
involving me from a couple of years ago in the list archives. Essentially,
Jeremy said that this was the intended design for X.org -- which is odd,
because on my Ubuntu desktop at work, xterms are unicode-enabled by
default, and alt = meta without further configuration. I haven't had time
to explore this in detail, though, so that's all I know on this point.
Richard
_______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list (email@hidden)
This email sent to email@hidden