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

Long list display problem #194

Open
sajadmirzaee opened this issue Mar 10, 2019 · 0 comments
Open

Long list display problem #194

sajadmirzaee opened this issue Mar 10, 2019 · 0 comments

Comments

@sajadmirzaee
Copy link

sajadmirzaee commented Mar 10, 2019

When console window height is smaller than the list's, the message of the prompt gets repeated. Look at these:
Screenshot from 2019-03-10 11-08-28

Screenshot from 2019-03-10 11-08-57

Screenshot from 2019-03-10 11-09-29

const prompts = require("prompts");

const prompt = [
  {
    type: "multiselect",
    name: "value",
    message: "Select the desired service..",
    choices: [
      { title: "a" },
      { title: "b" },
      { title: "c" },
      { title: "d" },
      { title: "e" },
      { title: "f" },
      { title: "g" },
      { title: "h" },
      { title: "i" },
      { title: "j" },
      { title: "k" },
      { title: "l" }
    ]
  }
];
async function print() {
  await prompts(prompt);
}
print();
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