bindctl command history
Shane Kerr
shane at isc.org
Fri May 18 07:03:46 UTC 2012
Jeremy,
On Thursday, 2012-05-17 11:14:02 -0500,
"Jeremy C. Reed" <jreed at isc.org> wrote:
> On Thu, 17 May 2012, Jeremy C. Reed wrote:
>
> > > 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.
>
> Seems like your backspace and Ctrl-Backspace are reversed.
FWIW, if readline is working then then either backspace or delete
characters are interpreted as "delete previous character then move
left".
> (I wonder why I can't find the sys.stdin.readline documented at
> http://docs.python.org/py3k/library/sys.html?highlight=sys.stdin#sys.stdin
> )
One of the problems with object-oriented languages is all of the
inherited methods. One of the problems with dynamically typed languages
is that there are no strict definitions of what methods are available
or come from where for any given object.
Having said that, sys.stdin is a normal IO object thingy and has the
normal readline method:
http://docs.python.org/py3k/library/io.html#io.IOBase.readline
--
Shane
More information about the bind10-users
mailing list