类:readline.Interface


【Class: readline.Interface

readline.Interface 类的实例是通过 readline.createInterface() 方法创建的。每个实例都关联一个 input 可读的 流和一个 output 可写 流。output 流用于打印供用户输入的提示,这些输入会通过 input 流到达并从中读取。

【Instances of the readline.Interface class are constructed using the readline.createInterface() method. Every instance is associated with a single input Readable stream and a single output Writable stream. The output stream is used to print prompts for user input that arrives on, and is read from, the input stream.】