prybar
prybar copied to clipboard
use readline for prompt() via magic
The old logic for prompt was pretty bad and readline has all of the logic we need + more so I figured we should just use it instead of our own logic.
This does come with a contingency though - this works because stream.Readable, events.EventEmitter, and readline.Interface synchronously handle data pushed to streams. If that were to change (e.g. debouncing event dispatches) then this would fail.
- To see the specific tasks where the Asana app for GitHub is being used, see below:
- https://app.asana.com/0/0/1202101412161487