prybar icon indicating copy to clipboard operation
prybar copied to clipboard

use readline for prompt() via magic

Open wbourne0 opened this issue 3 years ago • 0 comments

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

wbourne0 avatar Aug 31 '22 17:08 wbourne0