[MacPorts] #15488: wrap text to terminal width

MacPorts noreply at macports.org
Sat Aug 2 23:57:37 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):

 I tried the `stty -f /dev/stdout` approach today. But it does not seem to
 work, I always get a "Permission denied" error.

 So it needs an extension in Pextlib. I will look into determining the
 current size of the terminal using something like:
 {{{
 #include <sys/ioctl.h>
 struct winsize = {0, 0, 0, 0};
 ioctl(STDOUT_FILENO, TIOCGWINSZ, &s);
 }}}

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


More information about the macports-tickets mailing list