Mercurial > octave
diff liboctave/util/cmd-edit.h @ 19309:735bc47d18af gui-release
command_editor: provide access to rl_set_screen_size
* cmd-edit.h, cmd-edit.cc (command_editor::set_screen_size,
command_editor::do_set_screen_size, gnu_readline::do_set_screen_size):
New functions.
* oct-rl-edit.h, oct-rl-edit.c (octave_rl_set_screen_size):
New function.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Wed, 17 Sep 2014 16:28:41 -0400 |
parents | ad93e9be78ee |
children | 912158cf524d f7ccd02bc060 |
line wrap: on
line diff
--- a/liboctave/util/cmd-edit.h Wed Sep 17 16:36:41 2014 -0400 +++ b/liboctave/util/cmd-edit.h Wed Sep 17 16:28:41 2014 -0400 @@ -83,6 +83,8 @@ static void resize_terminal (void); + static void set_screen_size (int ht, int wd); + static std::string decode_prompt_string (const std::string& s); static void restore_terminal_state (void); @@ -250,6 +252,8 @@ virtual void do_resize_terminal (void) { } + virtual void do_set_screen_size (int, int) { } + virtual std::string do_decode_prompt_string (const std::string&); virtual std::string newline_chars (void) { return "\n"; }