Mercurial > octave
diff liboctave/util/cmd-edit.h @ 16537:106a38d7b396
optionall disable redisplay in command editor clear screen function
* oct-rl-edit.c (octave_rl_clear_screen): Likewise. If skip_redisplay
is true, override rl_redisplay_function. Otherwise, just call
rl_clear_screen.
* cmd-edit.h, cmd-edit.cc (command_editor::clear_screen,
command_editor::do_clear_screen, gnu_readline::do_clear_screen):
New arg, skip_redisplay.
* sysdep.cc (Fclc): Pass true to command_editor::clear_screen.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 18 Apr 2013 02:02:59 -0400 |
parents | 1dce0510b1e8 |
children | 8ea8df0747e9 |
line wrap: on
line diff
--- a/liboctave/util/cmd-edit.h Wed Apr 17 17:59:04 2013 -0400 +++ b/liboctave/util/cmd-edit.h Thu Apr 18 02:02:59 2013 -0400 @@ -75,7 +75,7 @@ static int terminal_cols (void); - static void clear_screen (void); + static void clear_screen (bool skip_redisplay = false); static void resize_terminal (void); @@ -217,7 +217,7 @@ virtual int do_terminal_cols (void) { return 80; } - virtual void do_clear_screen (void) { } + virtual void do_clear_screen (bool) { } virtual void do_resize_terminal (void) { }