[Toybox] [PATCH] toybox: fit list of commands in terminal width.
enh
enh at google.com
Thu Aug 13 09:24:52 PDT 2020
This can still be pretty ragged because it just leaves space for the
longest name at the end of each line rather than measuring the name that
actually comes next, but at least with this change we never over-run.
I noticed this because ConnectBot on my current device gives me a
60-column terminal.
busybox seems to do this, though it seems to actually measure, judging
by how close it gets to the margin. That doesn't seem worth the effort
though?
---
main.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-toybox-fit-list-of-commands-in-terminal-width.patch
Type: text/x-patch
Size: 1722 bytes
Desc: not available
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20200813/5cc89325/attachment-0002.bin>
More information about the Toybox
mailing list