Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Compatibility with Node repl module? #5

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

Compatibility with Node repl module? #5

IamCarbonMan opened this issue Jul 4, 2017 · 0 comments

Comments

@IamCarbonMan
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

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

No branches or pull requests

1 participant