l i n u x - u s e r s - g r o u p - o f - d a v i s
Next Meeting:
July 7: Social gathering
Next Installfest:
Latest News:
Jun. 14: June LUGOD meeting cancelled
Page last updated:
2001 Dec 30 17:08

The following is an archive of a post made to our 'vox-tech mailing list' by one of its subscribers.

Report this post as spam:

(Enter your email address)
Re: [vox-tech] avoiding recursive readline commands in .inputrc
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [vox-tech] avoiding recursive readline commands in .inputrc

On Wed, Aug 08, 2001 at 11:19:42AM -0700, Peter Jay Salzman wrote:
> hi all,
> in bash, i'd like to map the uparrow key to "escape uparrow".  the trouble is
> that there doesn't seem to be a way to make readline avoid the infinite
> recursion that results.  specifically, i'm trying to do:
> $if bash
> "OA": "OA"
> $endif
> why?  because i like using vi style editing in bash, but i hate the fact that
> i have to press escape before the uparrow starts showing command history.

Not quite what you want, but my .inputrc does something something close:

	set bell-style visible

	# the following three enable entering international characters
	set meta-flag On
	set convert-meta Off
	set output-meta On

	set editing-mode vi
	"^P": previous-history # that a literal C-P and C-N
	"^N": next-history

Mapping any character whose representation to the terminal begins with escape
disables the real escape key in vi mode. This appears to be a limitation in
how readline parses its input.

Henry House
OpenPGP key available from http://romana.hajhouse.org/hajhouse.asc

Attachment: pgp00000.pgp
Description: PGP signature

LUGOD Group on LinkedIn
Sign up for LUGOD event announcements
Your email address:
LUGOD Group on Facebook
'Like' LUGOD on Facebook:

Hosting provided by:
Sunset Systems
Sunset Systems offers preconfigured Linux systems, remote system administration and custom software development.

LUGOD: Linux Users' Group of Davis
PO Box 2082, Davis, CA 95617
Contact Us

LUGOD is a 501(c)7 non-profit organization
based in Davis, California
and serving the Sacramento area.
"Linux" is a trademark of Linus Torvalds.

Sponsored in part by:
Appahost Applications
For a significant contribution towards our projector, and a generous donation to allow us to continue meeting at the Davis Library.