Does ntpq have a command line history mechanism?
Matthew Selsky
Matthew.Selsky at twosigma.com
Sat Dec 23 06:45:47 UTC 2017
On Fri, Dec 22, 2017 at 06:42:00AM -0500, Eric S. Raymond via devel wrote:
> Hal Murray via devel <devel at ntpsec.org>:
> >
> > I was expecting one, but I get things like this:
> > ntpq> ^[[A^[[A^[[B
> > ***Command `' ambiguous
> > ntpq>
> >
> > That was up-arrow, up-arrow, down-arrow
> >
> > Is there some package I need to install?
>
> Up arrow and down arrow should work already. I am shocked to find that
> they do not.
>
> This is a serious regression. Who removed the import of readline, and why?
I removed it. See:
https://gitlab.com/NTPsec/ntpsec/commit/c5ed321067a939c2d360fb78145a6bd314e16e22
The Cmd module should be importing readline for us, when available, since 2001. See:
https://github.com/python/cpython/commit/66b6e192b9d0437029f8fd7aa9f381bb4e9ed248
@Hal, can you double-check that the readline python module is importable on your system? You might need libedit or GNU readline installed.
Would it help to add an informational check for this python module in waf's configure?
Thanks,
-Matt
More information about the devel
mailing list