new port search format

Peter O'Gorman peter at pogma.com
Thu Mar 20 22:57:49 PDT 2008


Rainer Müller wrote:
> Ryan Schmidt wrote:
>> I must say I find the new "port search" output format that's in trunk  
>> very hard to read. Before, we had roughly a table, and I could scan  
>> down the left column to read the port names. Now the description is  
>> in roughly the same place -- albeit indented by a couple spaces but  
>> it still interferes with my ability to scan the left column, which is  
>> no longer a column.
> 
> I found it unreadable before. The old format used a scheme which did not 
> work with any terminal size. If your window was smaller than the 
> description, it was wrapped to the next line. So there wasn't a clear 
> first column before either, because the descriptions were 'too long'.

Work out the width of the terminal `tput cols', default to 80 if you
can't figure it out, and work from there (test first if it is a tty, of
course, if not output can be as verbose as you like, it's either going
to a file or a pipe).

Peter
-- 
Peter O'Gorman
http://pogma.com


More information about the macports-dev mailing list