Mercurial > hg > octave-nkf
comparison libinterp/interpfcn/sysdep.cc @ 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 | 24e755668237 |
children | aa5299a1d770 |
comparison
equal
deleted
inserted
replaced
16536:7f634697a7b4 | 16537:106a38d7b396 |
---|---|
521 @deftypefn {Built-in Function} {} clc ()\n\ | 521 @deftypefn {Built-in Function} {} clc ()\n\ |
522 @deftypefnx {Built-in Function} {} home ()\n\ | 522 @deftypefnx {Built-in Function} {} home ()\n\ |
523 Clear the terminal screen and move the cursor to the upper left corner.\n\ | 523 Clear the terminal screen and move the cursor to the upper left corner.\n\ |
524 @end deftypefn") | 524 @end deftypefn") |
525 { | 525 { |
526 command_editor::clear_screen (); | 526 bool skip_redisplay = true; |
527 | |
528 command_editor::clear_screen (skip_redisplay); | |
527 | 529 |
528 return octave_value_list (); | 530 return octave_value_list (); |
529 } | 531 } |
530 | 532 |
531 DEFALIAS (home, clc); | 533 DEFALIAS (home, clc); |