Hello everyone.
There is one thing I really dislike about maxima under linux.
I'm running it in terminal, xterm actually.
This is about fixed output width. Here is a screenshot:
http://img113.imageshack.us/img113/3681/maxima1su2.png
As you see the output is printed in two lines, while there is still a
plenty of space on the right.
But it is still rather readable.
But sometimes is really messes everything up. Like here:
http://img247.imageshack.us/img247/4803/maxima2tm5.png
I found out that terminal width is fixed in src/displa.lisp:83
(setq linel 79. $linel 79. ttyheight 24.)
And if do smth like
(%i1) to_lisp();
Type (to-maxima) to restart, ($quit) to quit Maxima.
MAXIMA> (setq linel 150 $linel 150)
150
MAXIMA> (to-maxima)
Returning to Maxima
(%o1) true
Then the result is pretty good-looking:
http://img518.imageshack.us/img518/2432/maxima3vp3.png
So, we can just set linel to terminal width and solve this problem. As
i found out terminal width can be found with (maxima-getenv
"COLUMNS").
The last thing to do is to add smth like
(setq linel (maxima-getenv "COLUMNS") $linel (maxima-getenv
"COLUMNS") )
to the place, where user hits his enter key.
I would've provide a patch, but
1) I have no idea where this place is
2) The result of (maxima-getenv "COLUMNS") is a string and i don't
know how to convert it to a number
3) I don't know if all this is ok.
Would you give me a hand?
Thanks in advance, Fedor.