[Python-ideas] History stepping in interactive session?
Antoine Pitrou
solipsis at pitrou.net
Fri Oct 5 14:09:27 CEST 2012
On Fri, 05 Oct 2012 11:27:28 +0200
Andy Buckley <andy at insectnation.org> wrote:
> A couple of weeks ago I posted a question on superuser.com about whether
> there is a way to get the same *very* convenient
> stepping-through-command-history behaviour in an interactive Python
> interpreter session as is possible in (at least) the bash shell with the
> Ctrl-o keybinding:
The interactive interpreter (and I mean the default one, not
third-party choices like IPython) uses libreadline for its
editing and history functionality, so it's really a question about
libreadline you're asking. I don't know if it allows such
customization, but perhaps the Web site has the answer you're looking
for:
http://www.gnu.org/software/readline/
http://cnswww.cns.cwru.edu/php/chet/readline/rluserman.html
Regards
Antoine.
--
Software development and contracting: http://pro.pitrou.net
More information about the Python-ideas
mailing list