Help should fit in a 80 columns terminal
Pino Toscano
pino at kde.org
Sat Jan 23 19:18:25 GMT 2010
Alle sabato 23 gennaio 2010, Alain Portal ha scritto:
> Le samedi 23 janvier 2010 19:15:41, Pino Toscano a écrit :
> > > What do you think about this suggestion?
> >
> > More than that, I guess it would make more sense using the UNIX terminal
> > ioctl() API to get the size of the terminal, and adapt/reflow the help
> > text of the options to it.
>
> I'm not sure this is a good solution as every "\n" character in the help
> string will indent the new line at the column 29, which is the best
> readable solution.
That's why the second step would be removing any newline in command-line
arguments texts, letting the reflow function do that.
--
Pino Toscano
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20100123/754c7eda/attachment.sig>
More information about the kde-core-devel
mailing list