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

Not able to override terminal to false #17

Open
wesleytodd opened this issue Sep 23, 2013 · 0 comments
Open

Not able to override terminal to false #17

wesleytodd opened this issue Sep 23, 2013 · 0 comments

Comments

@wesleytodd
Copy link

Despite passing terminal: false, when readline.createInterface is called, it is called with terminal: true. It comes down to this line:

var terminal = !!(opts.terminal || output.isTTY)

I guess process.stdin being TTY will set this to true, but I get some weird behavior with my prompts with this setting. Namely, there is a large set of extra space after my prompt text. This goes away if I can set terminal to false.

Is there just something simple I am missing or is this a bug? If it is a bug I can whip up a PR tomorrow. Let me know!

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