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