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

feat: support multi line input #297

Open
mirsella opened this issue Dec 9, 2023 · 1 comment
Open

feat: support multi line input #297

mirsella opened this issue Dec 9, 2023 · 1 comment

Comments

@mirsella
Copy link

mirsella commented Dec 9, 2023

Hello !

Would be very useful to have a way of writing multiple lines in an Input.
For example, copying and pasting this text:

foo
bar

Would take only foo.

To know when to stop, maybe we can stop when getting an empty string back, for example with std::io::stdin().read_line(&mut buffer) will return 0 (because it didn't read anything) and not modify buffer.

Thanks !

@ThatFrogDev
Copy link

Yes, this would be indeed very awesome! I need that for my app too. Thanks for the request!

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

2 participants