Not able to override terminal to false #17

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

Comments

Projects
None yet
1 participant

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