bindctl command history
Jeremy C. Reed
jreed at isc.org
Thu May 17 15:34:01 UTC 2012
On Thu, 17 May 2012, Spain, Dr. Jeffry A. wrote:
> >>From yesterday's conference call I understand that bindctl is supposed to support command history using the arrow keys. Here's what I see instead:
>
> root at ns0:~# bindctl
> ["login success "] login as root
> > config show Boss
> Boss/components/ named_set (default)
> > ^[[A
> Error! Module name format error: the character of name can only be '0-9a-zA-Z_'
> > ^[[B
> Error! Module name format error: the character of name can only be '0-9a-zA-Z_'
> >
>
> Using the up arrow key generates "^[[A" and the down arrow "^[[B" instead of doing command history. There is another tedious problem with correcting typos: pressing the Backspace key generates "^H" instead of deleting the character to the left. The right and left arrows generate "^[[C" and "^[[D", and the Delete key generates "^[[3~". The only way I can delete the character to the left is <Ctrl>-<Backspace>. These keys all work as expected with the bash shell outside of bindctl.
>
> Thanks for your advice about this. Jeff.
This is provided my the python readline module. Some installations of
python do not include it. It is included by python3.1 by default; a
package maintainer may choose to provide a separate package for it. You
may need to install the readline line editing support for your python3
package.
The related ticket is
http://bind10.isc.org/ticket/677
Yes we need to clearly document this.
More information about the bind10-users
mailing list