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

Cannot input more than 1024 characters as in stdin in OS X #16

Open
yisiliu opened this issue Apr 24, 2020 · 1 comment
Open

Cannot input more than 1024 characters as in stdin in OS X #16

yisiliu opened this issue Apr 24, 2020 · 1 comment

Comments

@yisiliu
Copy link
Member

yisiliu commented Apr 24, 2020

https://users.rust-lang.org/t/io-stdin-read-more-than-1024-characters-at-a-time/13223

This is capped by the tty internal size limit, which is 1024 on OS X and 4096 on Linux. We probably need to remove the support of stdin and force pipe or file.

@clearloop
Copy link

clearloop commented May 8, 2020

We probably need to remove the support of stdin and force pipe or file.

Auto checking the stdin is a path or chars might be a solution.

Or just rising a child-process to open some vim-like editors, and then, let users fill the buffer, after saving, we read the temp file, kinds like:

$ ntge <COMMAND> -b

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