Hi all,

I'm looking at building an interactive session in front of some
rdfobj instances. I've used cmd and just found code.Interactive*.

Protocol doesn't matter, I'm looking at the UI possibilities. 
History is nice to have and my intention is to write output of 
the session to stdin/stderr.

However, my question, can I change the "prompt" string in respond 
to user input using readline? AFAIK I'll need curses to do this?
And colored prompts?

Example: the prompt, say '>>>', would change depending on wether
I type '<', '@' or ':' (and autocompletion libraries change too) .

I sometimes see some fancy shell output ('percentage loaded'-bars, 
etc) and I'm wondering how to do this with python and what it does 
to stdout. Any pointers?


regards, Berend

PS: please cc, I'm not on list
-- 
 web, http://dotmpe.com                      ()    ASCII Ribbon 
 email, berend:dotmpe:com                    /\                 
 irc, berend/mpe at irc.oftc.net                                

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to