Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Compatibility with Node repl module? #5

Open
carboniris opened this issue Jul 4, 2017 · 0 comments
Open

Compatibility with Node repl module? #5

carboniris opened this issue Jul 4, 2017 · 0 comments

Comments

@carboniris
Copy link

Here's a naive attempt at writing a Node REPL which shows the output of each command on the same line every time:

const repl = require('repl')
require('draftlog').into(console)
const update = console.draft('Starting REPL...')
repl.start({prompt:update})

And the output looks like this: https://asciinema.org/a/U0y4BMlqxMlhQLE2QE1szHiFi

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant