twisted.conch.client.knownhosts.ConsoleUI.prompt(self, text)
method documentationtwisted.conch.client.knownhosts.ConsoleUI
View Source
Write the given text as a prompt to the console output, then read a result from the console input.
Parameters | text | Something to present to a user to solicit a yes or no response. (type: bytes ) |
Returns | a 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. |
Function | body | Undocumented |