On Thu, Mar 03, 2005 at 05:31:37PM +0100, Danilo Piazzalunga wrote:
...But resize is part of X (even if it doesn't use xlibs), and we
don't want
to depend on xutils for that...
That's not good.
$columns = (`tput cols`);
print $columns;
That's better.
will solve all of our problems, and tput is part of ncurses-bin
(essential
package), so no additional dependencies are introduced.
I think Martin's solution with Term::ReadLine is the
cleanest really, I think those modules are standard enough
that they'd be installed anywhere.
Y.