[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: number of column of octave terminal
From: |
Mario Storti |
Subject: |
Re: number of column of octave terminal |
Date: |
Fri, 13 Feb 1998 16:57:30 -0300 |
On 13-Feb-1998, Francesco Potorti` <address@hidden> wrote:
> How can one make octave change its idea of terminal width? I use
> octave as an emacs subprocess on a character terminal. The number
> of columns I use is 100 but, when displaying matrices, octave
> behaves as if only 80 columns were available. Is there a way to
> tell octave to use all the 100 columns?
I made the following experiments. If I run octave in a shell buffer,
then it seems that it takes all the columns. (I have 90).
> octave:1> a=rand(2,20)
> a =
> Columns 1 through 9:
> 0.140188 0.549544 0.857038 0.674503 0.969252 0.569152 0.151468
> 0.265719 0.233612
> 0.550874 0.595655 0.195386 0.566142 0.436442 0.709600 0.479419
> 0.964438 0.135410
> Columns 10 through 18:
> 0.141866 0.829109 0.940577 0.015598 0.038012 0.769808 0.140344
> 0.907501 0.951285
> 0.556000 0.595934 0.475037 0.683419 0.120054 0.463509 0.610291
> 0.914489 0.555949
> Columns 19 and 20:
> 0.024835 0.391124
> 0.450244 0.924602
If I reshape the emacs window, then it seems that octave doesn't
change its idea of the number of columns and it continues to print
matrices as if the number of columns were 90.
On the other hand, if I use inferior-octave (from Kurt Hornik and jwe)
then octave takes the full width of the window (at the moment when I
launch the inferior-octave process). In the following example I tried
with 140.
> octave> a=rand(2,20);
> octave> a
> a =
> Columns 1 through 14:
> 0.478266 0.307825 0.696008 0.541108 0.126298 0.756525 0.060251
> 0.420881 0.913387 0.891144 0.101523 0.415495 0.024072 0.356640
> 0.802081 0.595122 0.010224 0.145903 0.069349 0.630153 0.036714
> 0.934186 0.390806 0.546535 0.699787 0.228345 0.896225 0.227212
> Columns 15 through 20:
> 0.133304 0.268972 0.407951 0.538149 0.169904 0.857675
> 0.221928 0.973794 0.745526 0.924439 0.093327 0.548380
> octave>
Do you use inferior-octave?
Mario
%%%%%%<>%%%%%%<>%%%%%%<>%%%%%%<>%%%%%%<>%%%%%%<>%%%%%%<>%%%%%%<>%%%%%%<>%
Mario Alberto Storti | Fax: (54)(42) 55.09.44 |
Centro Internacional de Metodos Computacionales| Tel: (54)(42) 55.91.75 |
en Ingenieria - CIMEC |........................|
INTEC, Guemes 3450 - 3000 Santa Fe, Argentina |
Reply: address@hidden, http://venus.unl.edu.ar/gtm-eng.html |