I was working on a REPL for my language and while testing it with big input, I've noticed that max line length is 4096. Is this enforced or can be changed somewhere to a bigger value? BufRead::read_line
doesn't provide any info on maximum length. Or should I do reading of user input in chunks?
std::io
and BufRead
should work fine even with 2GB-long lines. If you have a limit, it may be somewhere else, e.g. in OS-level readline library or the shell.
1 Like
Ah that makes sense, and it seems like it is the shell or terminal emulator. Piping works as expected. Thanks!
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.