Ticket #15488 (closed defect: fixed)
wrap text to terminal width
| Reported by: | ryandesign@… | Owned by: | raimue@… |
|---|---|---|---|
| Priority: | Normal | Milestone: | MacPorts base bugs |
| Component: | base | Version: | 1.7.0 |
| Keywords: | Cc: | ||
| Port: |
Description
MacPorts base in trunk now wraps output to 80 characters, but the terminal window is not necessarily 80 characters wide. It may be wider or narrower.
As a first step, I'd like to see the wrap-to width moved into a variable/constant that's defined only once. Magic numbers in source are bad.
Next step would be to wrap to the actual terminal width (if output is to a terminal) or not wrap at all (if output is to a file or pipe).
Rainer, since you've been working on some stuff near this the past few days, maybe you could at least take care of abstracting the wrap-to width into a variable?
Change History
Note: See
TracTickets for help on using
tickets.

