[Maxima] Proper terminal width
ta at imada.sdu.dk
Mon Jun 11 17:51:43 CDT 2007
On Mon, Jun 11, 2007 at 06:27:17PM -0400, Stavros Macrakis wrote:
> On 6/11/07, Гусев Фёдор <gusevfe at gmail.com> wrote:
> >...terminal width can be found with (maxima-getenv "COLUMNS").
> The environment variable COLUMNS isn't always set, but if it is, I
> suppose it would be a good idea to ini
I believe this depends on what shell you are running. You should be able
to get this information by running the tput(1) command like this (which
depends on ncurses I think):
$ tput cols
> > 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
> Can the environment variable really change dynamically, or is it enough to
> check this at initialization time?
It does here. This is quite common if you run maxima in e.g. an xterm.
with kind regards
More information about the Maxima