Kamaelia docs : Kamaelia.Util.Console.ConsoleReader

Kamaelia.Util.Console.ConsoleReader

For examples and more explanations, see the module level docs.


class ConsoleReader(Axon.ThreadedComponent.threadedcomponent)

ConsoleReader([prompt][,eol]) -> new ConsoleReader component.

Component that provides a console for typing in stuff. Each line is output from the "outbox" outbox one at a time.

Keyword arguments:

  • prompt -- Command prompt (default=">>> ")
  • eol -- End of line character(s) to put on end of every line outputted (default is newline)

Inboxes

  • control : NOT USED
  • inbox : NOT USED

Outboxes

  • outbox : Lines that were typed at the console
  • signal : NOT USED

Methods defined here

__init__(self[, prompt][, eol])

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

main(self)

Main thread loop.

Feedback

Got a problem with the documentation? Something unclear that could be clearer? Want to help improve it? Constructive criticism is very welcome - especially if you can suggest a better rewording!

Please leave you feedback here in reply to the documentation thread in the Kamaelia blog.

-- Automatic documentation generator, 19 Oct 2008 at 14:29:09 UTC/GMT

This is a page from the Kamaelia website. You can find the original here: