[MacPorts] #15488: wrap text to terminal width

MacPorts noreply at macports.org
Wed Jun 11 06:12:44 PDT 2008


#15488: wrap text to terminal width
--------------------------------------+-------------------------------------
  Reporter:  ryandesign at macports.org  |       Owner:  raimue at macports.org
      Type:  defect                   |      Status:  assigned           
  Priority:  Normal                   |   Milestone:  MacPorts base bugs 
 Component:  base                     |     Version:  1.7.0              
Resolution:                           |    Keywords:                     
--------------------------------------+-------------------------------------
Comment (by raimue at macports.org):

 Okay, I did a workaround in r37526.

 If no COLUMNS is in the environment (which happens when the input is not a
 tty), there is no line wrapping at all. I removed 80x24 as fallback, as
 this is not useful when using pipes.

 I don't know if there is a better way to fix it. Even if stdout is a tty,
 COLUMNS is not available in env and `stty size` only returns `stty: stdin
 isn't a terminal`.

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


More information about the macports-tickets mailing list