twisted.conch.client.knownhosts.ConsoleUI(object) class documentationtwisted.conch.client.knownhosts
(View In Hierarchy)
A UI object that can ask true/false questions and post notifications on the console, to be used during key verification.
| Method | __init__ | No summary | 
| 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. | 
| Parameters | opener | A no-argument callable which should open a console binary-mode file-like 
object to be used for reading and writing. This initializes the openerattribute. (type: callable taking no arguments and returning a read/write file-like object) | 
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 Deferredwhich fires withTruewhen the user answers 'yes' andFalsewhen the user answers 'no'.  It may errback if there were any I/O errors. | |
Notify the user (non-interactively) of the provided text, by writing it to the console.
| Parameters | text | Some information the user is to be made aware of. (type: bytes) |