bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: help me with readline key binding problem


From: Andreas Schwab
Subject: Re: help me with readline key binding problem
Date: Sun, 21 Jan 2007 11:36:52 +0100
User-agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.91 (gnu/linux)

Oibane <pflm52td@w6.dion.ne.jp> writes:

> It's surely bound according to bind -p, ok, but pressing Ctrl-' results 
> in ', a plain single quote, in xterm, and nothing in linux console. 
> (My keyboard does not need shift for apostrophe.) What should I do?

You need to change the characters those keys are generating, there is
nothing you can do inside readline about that.

> The other two are more peculiar. Putting
> "\C-.":beginning-of-line
> "\C-,":beginning-of-line
> and beginning-of-line gets bound instead to Ctrl-n, Ctrl-l, respectively.

There are no control characters with these names.  The C- modifier just
clears the 0x40 bit of the character, thus C-. and C-n map to the same
control character.

> Was it wrong, because not escaped? But when I write
> "\C-\.":beginning-of-line
> "\C-\,":beginning-of-line
> bind -p returns the carbon copy of these two lines, 

You have just bound the two character sequences C-\ . and C-\ , to
beginning-of-line.

> but holding down Ctrl-. or , returns nothing.

As long as the terminal does not emit anything distinguishable for these
keys it won't change anything.

Andreas.

-- 
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."




reply via email to

[Prev in Thread] Current Thread [Next in Thread]