Skip to content

Not able to override terminal to false #17

Description

@wesleytodd

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!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions