[IPython-dev] pyreadline refactoring

Ville M. Vainio vivainio at gmail.com
Thu Jun 26 12:49:02 EDT 2008

On Thu, Jun 26, 2008 at 4:05 PM, Laurent Dufréchou
<laurent.dufrechou at gmail.com> wrote:

> I fact should be good to have some simple function to get easily an history.
> Currently to get history I use....:
> IP.input_hist_raw[self._history_level].strip('\n')
> That is far from ideal...

It's trivial to wrap; it just needs to be done :).

> - In my code I used pyreadline capabilities to get ascii colored outputted
> datas.
> Do you think it could be possible to add some other output formatter like
> for example an xml formatter or html for example. Perhaps just a method to

Yes, but you will still need to support the colored output from system
commands, so the ANSI code handling needs to be there in the end.

Someone could write a html/xml colorizer to allow convenient/readable
color coding, of course, but it could as well be a simple function
that converts stuff to ANSI color codes.

Ville M. Vainio - vivainio.googlepages.com
blog=360.yahoo.com/villevainio - g[mail | talk]='vivainio'

More information about the IPython-dev mailing list