t.c.c.k.ConsoleUI(object) : class documentation

Part of twisted.conch.client.knownhosts View Source View In Hierarchy

A UI object that can ask true/false questions and post notifications on the console, to be used during key verification.
Instance Variablesopenera no-argument callable which should open a console file-like object to be used for reading and writing.
Method __init__ Undocumented
Method prompt Write the given text as a prompt to the console output, then read a result from the console input.
Method warn Notify the user (non-interactively) of the provided text, by writing it to the console.
def __init__(self, opener): (source)
Undocumented
def prompt(self, text): (source)
Write the given text as a prompt to the console output, then read a result from the console input.
Returnsa Deferred which fires with True when the user answers 'yes' and False when the user answers 'no'. It may errback if there were any I/O errors.
def warn(self, text): (source)
Notify the user (non-interactively) of the provided text, by writing it to the console.
API Documentation for Twisted, generated by pydoctor at 2011-10-27 16:27:37.