From help-octave-request at bevo dot che dot wisc dot edu Fri Feb 13 13:31:08 1998 Subject: number of column of octave terminal From: "John W. Eaton" To: Francesco Potorti` Cc: Octave users list Date: Fri, 13 Feb 1998 13:31:37 -0600 On 13-Feb-1998, Francesco Potorti` 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? If Octave is compiled to use readline, it should pay attention to whatever size readline thinks the terminal is. That's maintained in the screenwidth variable in readline, and it is set in _rl_get_screen_size in terminal.c. Exactly how it is set depends on the system and terminal you are using. On mine, it is set to the same value I set using `stty columns NNN'. On others, it may be set from information stored in either the termcap or terminfo file, or the COLUMNS environment variable, or, if all else fails, it defaults to 80. jwe