4 ms·
Out of curiosity, why should each application implement line wrapping for terminals. That seems like a feature the terminal should implement, and from what I've
by camel-cdr 5y ago
Out of curiosity, why should each application implement line wrapping for terminals. That seems like a feature the terminal should implement, and from what I've read there is no standard way of getting the terminal size anyway.
- zaarn 5y agoThe terminal isn't aware that you're, for example, using an indent because the help text of an option should appear indented from the option it's explaining. So the line wrap will go into the next line and ruin the readability.
- camel-cdr 5y agoAh, that makes sense.
- ksherlock 5y agoThere's the TIOCGWINSZ ioctl which seems pretty standard.