类:readline.Interface
\Class: readline.Interface
版本历史
| 版本 | 变更 |
|---|---|
| v17.0.0 |
|
| v0.1.104 | 新增于: v0.1.104 |
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.