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

Multi-line question (or choices) #4

Closed
SBoudrias opened this issue May 18, 2013 · 4 comments
Closed

Multi-line question (or choices) #4

SBoudrias opened this issue May 18, 2013 · 4 comments
Labels

Comments

@SBoudrias
Copy link
Owner

Right now there's no support for using line return inside questions or choices.

@SBoudrias
Copy link
Owner Author

That's fixes for questions. Not sure I see the point for choices, so that is out for now.

@mchlltt
Copy link

mchlltt commented Feb 7, 2017

Apologies for reviving an extraordinarily old issue, but I wanted to check whether multi-line choices ever became possible. I'd like my user to be able to view pretty-printed JSON objects and choose between them, but the fact that they're ~5 lines each means that the interface is bugging out pretty badly. I've tried upping pageSize to no avail. I'm sure I could find a workaround for my specific case, but I thought I'd ask.

@SBoudrias
Copy link
Owner Author

@mchlltt Multiline support in choices should work fine https://github.com/SBoudrias/Inquirer.js/blob/master/examples/long-list.js#L11

But there's a good chance having bigger than ~2 lines choices can trip the UI badly. The pagination is pretty dumb ATM. You can see this PR trying to making it better #492

@mchlltt
Copy link

mchlltt commented Feb 8, 2017

@SBoudrias - Ah, thanks :) I'll keep an eye on that PR in case I'm able to help out.

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

No branches or pull requests

2 participants