[MacPorts] #15488: wrap text to terminal width

MacPorts noreply at macports.org
Mon Jun 2 15:41:13 PDT 2008


#15488: wrap text to terminal width
-------------------------------------+--------------------------------------
 Reporter:  ryandesign at macports.org  |       Owner:  raimue at macports.org
     Type:  defect                   |      Status:  new                
 Priority:  Normal                   |   Milestone:  MacPorts base bugs 
Component:  base                     |     Version:  1.7.0              
 Keywords:                           |  
-------------------------------------+--------------------------------------
 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?

-- 
Ticket URL: <http://trac.macports.org/ticket/15488>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list