Commit 9c3559f0 authored by Nathan Rajlich's avatar Nathan Rajlich
Browse files

readline: re-add the Interface#close() method; rename "end" to "close"

The idea here is to reduce the number of times that `setRawMode()` is called
on the `input` stream, since it is expensive, and simply pause()/resume()
should not call it.

So now `setRawMode()` only gets called at the beginning of the Interface
instance, and then when `Interface#close()` is called.

Test case included.
parent 86bd9b6e
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment