[Maxima] Proper terminal width
macrakis at alum.mit.edu
Tue Jun 12 11:20:41 CDT 2007
On 6/11/07, Robert Dodier <robert.dodier at gmail.com> wrote:
> I'm sympathetic --- my Maxima development environment is Linux ---
> but since this is a matter of taste, and system-dependent, I'm
> hesitant to recommend including this stuff in the Maxima built-in
I would think that if Maxima is outputting to a TTY-like device (not a GUI)
and if the environment variable COLUMNS is set, then it would make sense to
use its value for LINEL at initialization. As for whether to check it
before outputting, on my machine, a getenv takes about 20 microseconds, so
the overhead is negligeable. I propose that if COLUMNS was set to a number
at init time, then we check it before printing each %o line.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Maxima