This might sound lika a "small" issu, but here it goes: I'm a long time unix user and my shell history usage and editing is configured to use vi keybindings; it's something that's already built into my fingers and using different bindings, like the arrow keys to fetch previous lines, really blows me !... :-( Is there any way to setup the asterisk cli to use such keybindings ? I took a quick glance at 1.4.11 source and found readline.[ch] files, but asterisk is not behaving to my inputrc configuration... Googled for a while to no effect. Am I alone in this ? Thanks in advance for any hint, -- exvito
On Mon, Sep 24, 2007 at 02:04:05AM +0100, Ex Vito wrote:> This might sound lika a "small" issu, but here it goes: I'm a long time > unix user and my shell history usage and editing is configured to use > vi keybindings; it's something that's already built into my fingers > and using different bindings, like the arrow keys to fetch previous > lines, really blows me !... :-( > > Is there any way to setup the asterisk cli to use such keybindings ? > > I took a quick glance at 1.4.11 source and found readline.[ch] files, > but asterisk is not behaving to my inputrc configuration... Googled > for a while to no effect.Set in your environment: AST_EDITOR=vi before starting Asterisk. (See main/asterisk.c) -- Tzafrir Cohen icq#16849755 jabber:tzafrir at jabber.org +972-50-7952406 mailto:tzafrir.cohen at xorcom.com http://www.xorcom.com iax:guest at local.xorcom.com/tzafrir
On 9/24/07, Tzafrir Cohen <tzafrir.cohen at xorcom.com> wrote:> On Mon, Sep 24, 2007 at 02:04:05AM +0100, Ex Vito wrote: > > > > Is there any way to setup the asterisk cli to use such keybindings ? > >...> > Set in your environment: > > AST_EDITOR=vi > > before starting Asterisk. > > (See main/asterisk.c) >Great ! Thanks a lot. :-) -- exvito