[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: terminal or cursor control

From: John W. Eaton
Subject: Re: terminal or cursor control
Date: Fri, 18 May 2001 11:02:20 -0500

On 18-May-2001, Ben Sapp <address@hidden> wrote:

| "E. Joshua Rigler" wrote:
| > 
| > Is it possible in Octave to rewrite a line without sending a newline?

| I think this will do somehting pretty close to what you want:
| page_screen_output = 0;
| page_output_immediately = 1;
| octave:162> for i = 1:100
| > printf("\r%d",i);
| > sleep(1);
| > endfor
| The "\r" returns you to the beginning of the current line.  This little
| script will print a 1, then a 2, ... all the way up to 100.   All on the
| same line and erasing the number that was there before.  

This is nice, but it would also be really cool to have an Octave
package that provides an interface to something like ncurses.  Any



Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:
How to fund new projects:
Subscription information:

reply via email to

[Prev in Thread] Current Thread [Next in Thread]