Mercurial > hg > octave-avbm
changeset 3855:e68ca8165ba6
[project @ 2001-11-06 16:27:26 by jwe]
author | jwe |
---|---|
date | Tue, 06 Nov 2001 16:27:26 +0000 |
parents | 2a4b9d746980 |
children | 7ab0e1a1b943 |
files | liboctave/oct-rl-edit.c |
diffstat | 1 files changed, 16 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/liboctave/oct-rl-edit.c +++ b/liboctave/oct-rl-edit.c @@ -58,7 +58,22 @@ void octave_rl_clear_screen (void) { - rl_clear_screen (); + int ignore1 = 0; + int ignore2 = 0; + + // XXX FIXME XXX -- After calling rl_clear_screen, the screen will + // not be correct. If called from clc() for example, it will look + // like this: + // + // octave:13> clcoctave:14> + // + // What is the proper way to remove the clc and the second prompt? + // _rl_clear_screen does what we want (just clears the screen) but + // it is not a public function, and on some systems, it is not + // exported from shared library versions of readline, so we can't + // use it. + + rl_clear_screen (ignore1, ignore2); } void