Actions
Submit #3375
closed[PATCH] mail(1): adapt to terminal size changes.
Start date:
12/16/2024
Due date:
% Done:
100%
Estimated time:
Description
Here's a trivial patch to improve mail(1)/mailx(1)/Mail(1) a little bit:
take notice of terminal/window size changes. To experience the effect:
- run mail(1) in a, say, 80 column terminal window on some
mailbox and "h" to see a header listing, which will typically
have space only for abridged subjects:
& h
N 1 root@freddie.marshla Sun Dec 15 03:01 89/3080 "freddie.marshlabs.gae"
N 2 root@freddie.marshla Sun Dec 15 03:01 120/5253 "freddie.marshlabs.gae"
N 3 root@freddie.marshla Mon Dec 16 03:14 82/2880 "freddie.marshlabs.gae"
N 4 root@freddie.marshla Mon Dec 16 03:15 119/5252 "freddie.marshlabs.gae"
&
- resize the terminal width to, say, 132 columns.
- re-issue the "h".
Without this patch, the subjects will still be abridged as before,
with the patch the new extra space gets used.
Martin
Files
Updated by liweitianux about 1 month ago
- Category set to Userland
- Status changed from New to Closed
- Assignee set to liweitianux
- % Done changed from 0 to 100
Committed to master and 6.4 branch. Thank you.
Actions