#include "cmd-edit.h"
Public Types | |
typedef int(* | char_is_quoted_fcn )(const std::string &, int) |
typedef std::string(* | completion_fcn )(const std::string &, int) |
typedef std::string(* | dequoting_fcn )(const std::string &, int) |
typedef int(* | event_hook_fcn )(void) |
typedef std::string(* | quoting_fcn )(const std::string &, int, char) |
typedef int(* | startup_hook_fcn )(void) |
typedef void(* | user_accept_line_fcn )(const std::string &) |
Public Member Functions | |
virtual | ~command_editor (void) |
Static Public Member Functions | |
static void | accept_line (void) |
static void | add_event_hook (event_hook_fcn f) |
static void | add_startup_hook (startup_hook_fcn f) |
static void | blink_matching_paren (bool flag) |
static void | clear_screen (void) |
static void | clear_undo_list (void) |
static int | current_command_number (void) |
static std::string | decode_prompt_string (const std::string &s) |
static bool | filename_completion_desired (bool) |
static bool | filename_quoting_desired (bool) |
static void | force_default_editor (void) |
static string_vector | generate_filename_completions (const std::string &text) |
static char_is_quoted_fcn | get_char_is_quoted_function (void) |
static completion_fcn | get_completion_function (void) |
static dequoting_fcn | get_dequoting_function (void) |
static FILE * | get_input_stream (void) |
static std::string | get_line_buffer (void) |
static FILE * | get_output_stream (void) |
static quoting_fcn | get_quoting_function (void) |
static user_accept_line_fcn | get_user_accept_line_function (void) |
static void | increment_current_command_number (void) |
static void | insert_text (const std::string &text) |
static void | newline (void) |
static void | re_read_init_file (void) |
static void | read_init_file (const std::string &file=std::string()) |
static std::string | readline (const std::string &prompt) |
static std::string | readline (const std::string &prompt, bool &eof) |
static void | remove_event_hook (event_hook_fcn f) |
static void | remove_startup_hook (startup_hook_fcn f) |
static void | reset_current_command_number (int n) |
static void | resize_terminal (void) |
static void | restore_terminal_state (void) |
static void | run_event_hooks (void) |
static void | set_basic_quote_characters (const std::string &s) |
static void | set_basic_word_break_characters (const std::string &s) |
static void | set_char_is_quoted_function (char_is_quoted_fcn f) |
static void | set_completer_quote_characters (const std::string &s) |
static void | set_completer_word_break_characters (const std::string &s) |
static void | set_completion_append_character (char c) |
static void | set_completion_function (completion_fcn f) |
static void | set_dequoting_function (dequoting_fcn f) |
static void | set_filename_quote_characters (const std::string &s) |
static void | set_input_stream (FILE *f) |
static void | set_name (const std::string &n) |
static void | set_output_stream (FILE *f) |
static void | set_quoting_function (quoting_fcn f) |
static void | set_user_accept_line_function (user_accept_line_fcn f) |
static int | terminal_cols (void) |
static int | terminal_rows (void) |
Protected Member Functions | |
command_editor (void) | |
virtual void | do_accept_line (void)=0 |
virtual void | do_blink_matching_paren (bool) |
virtual void | do_clear_screen (void) |
virtual void | do_clear_undo_list (void) |
virtual std::string | do_decode_prompt_string (const std::string &) |
virtual bool | do_filename_completion_desired (bool) |
virtual bool | do_filename_quoting_desired (bool) |
virtual string_vector | do_generate_filename_completions (const std::string &text)=0 |
virtual char_is_quoted_fcn | do_get_char_is_quoted_function (void) const |
virtual completion_fcn | do_get_completion_function (void) const |
virtual dequoting_fcn | do_get_dequoting_function (void) const |
virtual FILE * | do_get_input_stream (void)=0 |
virtual std::string | do_get_line_buffer (void) const =0 |
virtual FILE * | do_get_output_stream (void)=0 |
virtual quoting_fcn | do_get_quoting_function (void) const |
virtual user_accept_line_fcn | do_get_user_accept_line_function (void) const |
virtual void | do_insert_text (const std::string &)=0 |
virtual void | do_newline (void)=0 |
virtual void | do_re_read_init_file (void) |
virtual void | do_read_init_file (const std::string &) |
virtual std::string | do_readline (const std::string &, bool &)=0 |
std::string | do_readline (const std::string &prompt) |
virtual void | do_resize_terminal (void) |
virtual void | do_restore_terminal_state (void) |
virtual void | do_set_basic_quote_characters (const std::string &) |
virtual void | do_set_basic_word_break_characters (const std::string &) |
virtual void | do_set_char_is_quoted_function (char_is_quoted_fcn) |
virtual void | do_set_completer_quote_characters (const std::string &) |
virtual void | do_set_completer_word_break_characters (const std::string &) |
virtual void | do_set_completion_append_character (char) |
virtual void | do_set_completion_function (completion_fcn) |
virtual void | do_set_dequoting_function (dequoting_fcn) |
virtual void | do_set_filename_quote_characters (const std::string &) |
virtual void | do_set_input_stream (FILE *)=0 |
virtual void | do_set_name (const std::string &) |
virtual void | do_set_output_stream (FILE *)=0 |
virtual void | do_set_quoting_function (quoting_fcn) |
virtual void | do_set_user_accept_line_function (user_accept_line_fcn) |
virtual int | do_terminal_cols (void) |
virtual int | do_terminal_rows (void) |
void | error (const std::string &) |
void | error (int) |
virtual std::string | newline_chars (void) |
int | read_octal (const std::string &s) |
virtual void | restore_event_hook (void) |
virtual void | restore_startup_hook (void) |
virtual void | set_event_hook (startup_hook_fcn) |
virtual void | set_startup_hook (startup_hook_fcn) |
Protected Attributes | |
int | command_number |
Private Types | |
typedef std::set < event_hook_fcn > ::const_iterator | event_hook_set_const_iterator |
typedef std::set < event_hook_fcn >::iterator | event_hook_set_iterator |
typedef std::set < startup_hook_fcn > ::const_iterator | startup_hook_set_const_iterator |
typedef std::set < startup_hook_fcn >::iterator | startup_hook_set_iterator |
Private Member Functions | |
command_editor (const command_editor &) | |
command_editor & | operator= (const command_editor &) |
Static Private Member Functions | |
static void | cleanup_instance (void) |
static int | event_handler (void) |
static bool | instance_ok (void) |
static void | make_command_editor (void) |
static int | startup_handler (void) |
Static Private Attributes | |
static std::set< event_hook_fcn > | event_hook_set |
static command_editor * | instance = 0 |
static std::set< startup_hook_fcn > | startup_hook_set |
Definition at line 33 of file cmd-edit.h.
typedef int(* command_editor::char_is_quoted_fcn)(const std::string &, int) |
Definition at line 54 of file cmd-edit.h.
typedef std::string(* command_editor::completion_fcn)(const std::string &, int) |
Definition at line 48 of file cmd-edit.h.
typedef std::string(* command_editor::dequoting_fcn)(const std::string &, int) |
Definition at line 52 of file cmd-edit.h.
typedef int(* command_editor::event_hook_fcn)(void) |
Definition at line 46 of file cmd-edit.h.
typedef std::set<event_hook_fcn>::const_iterator command_editor::event_hook_set_const_iterator [private] |
Definition at line 182 of file cmd-edit.h.
typedef std::set<event_hook_fcn>::iterator command_editor::event_hook_set_iterator [private] |
Definition at line 181 of file cmd-edit.h.
typedef std::string(* command_editor::quoting_fcn)(const std::string &, int, char) |
Definition at line 50 of file cmd-edit.h.
typedef int(* command_editor::startup_hook_fcn)(void) |
Definition at line 44 of file cmd-edit.h.
typedef std::set<startup_hook_fcn>::const_iterator command_editor::startup_hook_set_const_iterator [private] |
Definition at line 179 of file cmd-edit.h.
typedef std::set<startup_hook_fcn>::iterator command_editor::startup_hook_set_iterator [private] |
Definition at line 178 of file cmd-edit.h.
typedef void(* command_editor::user_accept_line_fcn)(const std::string &) |
Definition at line 56 of file cmd-edit.h.
command_editor::command_editor | ( | void | ) | [inline, protected] |
Definition at line 39 of file cmd-edit.h.
virtual command_editor::~command_editor | ( | void | ) | [inline, virtual] |
Definition at line 58 of file cmd-edit.h.
command_editor::command_editor | ( | const command_editor & | ) | [private] |
void command_editor::accept_line | ( | void | ) | [static] |
Definition at line 1166 of file cmd-edit.cc.
References do_accept_line(), instance, and instance_ok().
void command_editor::add_event_hook | ( | event_hook_fcn | f | ) | [static] |
Definition at line 1206 of file cmd-edit.cc.
References event_handler(), event_hook_set, instance, instance_ok(), and set_event_hook().
Referenced by DEFUN().
void command_editor::add_startup_hook | ( | startup_hook_fcn | f | ) | [static] |
Definition at line 1180 of file cmd-edit.cc.
References instance, instance_ok(), set_startup_hook(), startup_handler(), and startup_hook_set.
void command_editor::blink_matching_paren | ( | bool | flag | ) | [static] |
Definition at line 1020 of file cmd-edit.cc.
References do_blink_matching_paren(), instance, and instance_ok().
Referenced by octave_main().
static void command_editor::cleanup_instance | ( | void | ) | [inline, static, private] |
Definition at line 187 of file cmd-edit.h.
Referenced by instance_ok().
void command_editor::clear_screen | ( | void | ) | [static] |
Definition at line 971 of file cmd-edit.cc.
References do_clear_screen(), instance, and instance_ok().
Referenced by DEFUN().
void command_editor::clear_undo_list | ( | void | ) | [static] |
Definition at line 1173 of file cmd-edit.cc.
References do_clear_undo_list(), instance, and instance_ok().
int command_editor::current_command_number | ( | void | ) | [static] |
Definition at line 992 of file cmd-edit.cc.
References command_number, instance, and instance_ok().
std::string command_editor::decode_prompt_string | ( | const std::string & | s | ) | [static] |
Definition at line 985 of file cmd-edit.cc.
References do_decode_prompt_string(), instance, and instance_ok().
Referenced by do_input_echo(), and octave_gets().
virtual void command_editor::do_accept_line | ( | void | ) | [protected, pure virtual] |
Implemented in default_command_editor.
Referenced by accept_line().
virtual void command_editor::do_blink_matching_paren | ( | bool | ) | [inline, protected, virtual] |
Definition at line 228 of file cmd-edit.h.
Referenced by blink_matching_paren().
virtual void command_editor::do_clear_screen | ( | void | ) | [inline, protected, virtual] |
Definition at line 218 of file cmd-edit.h.
Referenced by clear_screen().
virtual void command_editor::do_clear_undo_list | ( | void | ) | [inline, protected, virtual] |
Definition at line 272 of file cmd-edit.h.
Referenced by clear_undo_list().
std::string command_editor::do_decode_prompt_string | ( | const std::string & | s | ) | [protected, virtual] |
Definition at line 1300 of file cmd-edit.cc.
References base_pathname(), command_number, command_history::current_number(), octave_env::get_current_directory(), octave_env::get_home_directory(), octave_env::get_host_name(), octave_env::get_program_name(), octave_env::get_user_name(), newline_chars(), octave_rl_prompt_end_ignore(), octave_rl_prompt_start_ignore(), polite_directory_format(), read_octal(), and octave_base_tm::strftime().
Referenced by decode_prompt_string().
Definition at line 286 of file cmd-edit.h.
Referenced by filename_completion_desired().
Definition at line 288 of file cmd-edit.h.
Referenced by filename_quoting_desired().
virtual string_vector command_editor::do_generate_filename_completions | ( | const std::string & | text | ) | [protected, pure virtual] |
Implemented in default_command_editor.
Referenced by generate_filename_completions().
virtual char_is_quoted_fcn command_editor::do_get_char_is_quoted_function | ( | void | ) | const [inline, protected, virtual] |
Definition at line 258 of file cmd-edit.h.
Referenced by get_char_is_quoted_function().
virtual completion_fcn command_editor::do_get_completion_function | ( | void | ) | const [inline, protected, virtual] |
Definition at line 252 of file cmd-edit.h.
Referenced by get_completion_function().
virtual dequoting_fcn command_editor::do_get_dequoting_function | ( | void | ) | const [inline, protected, virtual] |
Definition at line 256 of file cmd-edit.h.
Referenced by get_dequoting_function().
virtual FILE* command_editor::do_get_input_stream | ( | void | ) | [protected, pure virtual] |
Implemented in default_command_editor.
Referenced by get_input_stream().
virtual std::string command_editor::do_get_line_buffer | ( | void | ) | const [protected, pure virtual] |
Implemented in default_command_editor.
Referenced by get_line_buffer().
virtual FILE* command_editor::do_get_output_stream | ( | void | ) | [protected, pure virtual] |
Implemented in default_command_editor.
Referenced by get_output_stream().
virtual quoting_fcn command_editor::do_get_quoting_function | ( | void | ) | const [inline, protected, virtual] |
Definition at line 254 of file cmd-edit.h.
Referenced by get_quoting_function().
virtual user_accept_line_fcn command_editor::do_get_user_accept_line_function | ( | void | ) | const [inline, protected, virtual] |
Definition at line 260 of file cmd-edit.h.
Referenced by get_user_accept_line_function().
virtual void command_editor::do_insert_text | ( | const std::string & | ) | [protected, pure virtual] |
Implemented in default_command_editor.
Referenced by insert_text().
virtual void command_editor::do_newline | ( | void | ) | [protected, pure virtual] |
Implemented in default_command_editor.
Referenced by newline().
virtual void command_editor::do_re_read_init_file | ( | void | ) | [inline, protected, virtual] |
Definition at line 284 of file cmd-edit.h.
Referenced by re_read_init_file().
virtual void command_editor::do_read_init_file | ( | const std::string & | ) | [inline, protected, virtual] |
Definition at line 282 of file cmd-edit.h.
Referenced by read_init_file().
std::string command_editor::do_readline | ( | const std::string & | prompt | ) | [inline, protected] |
Definition at line 197 of file cmd-edit.h.
Referenced by readline().
virtual std::string command_editor::do_readline | ( | const std::string & | , | |
bool & | ||||
) | [protected, pure virtual] |
Implemented in default_command_editor.
virtual void command_editor::do_resize_terminal | ( | void | ) | [inline, protected, virtual] |
Definition at line 220 of file cmd-edit.h.
Referenced by resize_terminal().
virtual void command_editor::do_restore_terminal_state | ( | void | ) | [inline, protected, virtual] |
Definition at line 226 of file cmd-edit.h.
Referenced by restore_terminal_state().
virtual void command_editor::do_set_basic_quote_characters | ( | const std::string & | ) | [inline, protected, virtual] |
Definition at line 234 of file cmd-edit.h.
Referenced by set_basic_quote_characters().
virtual void command_editor::do_set_basic_word_break_characters | ( | const std::string & | ) | [inline, protected, virtual] |
Definition at line 230 of file cmd-edit.h.
Referenced by set_basic_word_break_characters().
virtual void command_editor::do_set_char_is_quoted_function | ( | char_is_quoted_fcn | ) | [inline, protected, virtual] |
Definition at line 248 of file cmd-edit.h.
Referenced by set_char_is_quoted_function().
virtual void command_editor::do_set_completer_quote_characters | ( | const std::string & | ) | [inline, protected, virtual] |
Definition at line 238 of file cmd-edit.h.
Referenced by set_completer_quote_characters().
virtual void command_editor::do_set_completer_word_break_characters | ( | const std::string & | ) | [inline, protected, virtual] |
Definition at line 232 of file cmd-edit.h.
Referenced by set_completer_word_break_characters().
virtual void command_editor::do_set_completion_append_character | ( | char | ) | [inline, protected, virtual] |
Definition at line 240 of file cmd-edit.h.
Referenced by set_completion_append_character().
virtual void command_editor::do_set_completion_function | ( | completion_fcn | ) | [inline, protected, virtual] |
Definition at line 242 of file cmd-edit.h.
Referenced by set_completion_function().
virtual void command_editor::do_set_dequoting_function | ( | dequoting_fcn | ) | [inline, protected, virtual] |
Definition at line 246 of file cmd-edit.h.
Referenced by set_dequoting_function().
virtual void command_editor::do_set_filename_quote_characters | ( | const std::string & | ) | [inline, protected, virtual] |
Definition at line 236 of file cmd-edit.h.
Referenced by set_filename_quote_characters().
virtual void command_editor::do_set_input_stream | ( | FILE * | ) | [protected, pure virtual] |
Implemented in default_command_editor.
Referenced by set_input_stream().
virtual void command_editor::do_set_name | ( | const std::string & | ) | [inline, protected, virtual] |
Definition at line 195 of file cmd-edit.h.
Referenced by set_name().
virtual void command_editor::do_set_output_stream | ( | FILE * | ) | [protected, pure virtual] |
Implemented in default_command_editor.
Referenced by set_output_stream().
virtual void command_editor::do_set_quoting_function | ( | quoting_fcn | ) | [inline, protected, virtual] |
Definition at line 244 of file cmd-edit.h.
Referenced by set_quoting_function().
virtual void command_editor::do_set_user_accept_line_function | ( | user_accept_line_fcn | ) | [inline, protected, virtual] |
Definition at line 250 of file cmd-edit.h.
Referenced by set_user_accept_line_function().
virtual int command_editor::do_terminal_cols | ( | void | ) | [inline, protected, virtual] |
Definition at line 216 of file cmd-edit.h.
Referenced by terminal_cols().
virtual int command_editor::do_terminal_rows | ( | void | ) | [inline, protected, virtual] |
Definition at line 214 of file cmd-edit.h.
Referenced by terminal_rows().
void command_editor::error | ( | const std::string & | s | ) | [protected] |
Definition at line 1564 of file cmd-edit.cc.
References current_liboctave_error_handler.
void command_editor::error | ( | int | err_num | ) | [protected] |
Definition at line 1558 of file cmd-edit.cc.
References current_liboctave_error_handler.
int command_editor::event_handler | ( | void | ) | [static, private] |
Definition at line 886 of file cmd-edit.cc.
References event_hook_set, f, octave_mutex::lock(), and octave_mutex::unlock().
Referenced by add_event_hook(), and run_event_hooks().
Definition at line 1260 of file cmd-edit.cc.
References do_filename_completion_desired(), instance, and instance_ok().
Definition at line 1267 of file cmd-edit.cc.
References do_filename_quoting_desired(), instance, and instance_ok().
void command_editor::force_default_editor | ( | void | ) | [static] |
string_vector command_editor::generate_filename_completions | ( | const std::string & | text | ) | [static] |
Definition at line 1139 of file cmd-edit.cc.
References do_generate_filename_completions(), instance, and instance_ok().
Referenced by generate_completion().
command_editor::char_is_quoted_fcn command_editor::get_char_is_quoted_function | ( | void | ) | [static] |
Definition at line 1125 of file cmd-edit.cc.
References do_get_char_is_quoted_function(), instance, and instance_ok().
command_editor::completion_fcn command_editor::get_completion_function | ( | void | ) | [static] |
Definition at line 1104 of file cmd-edit.cc.
References do_get_completion_function(), instance, and instance_ok().
command_editor::dequoting_fcn command_editor::get_dequoting_function | ( | void | ) | [static] |
Definition at line 1118 of file cmd-edit.cc.
References do_get_dequoting_function(), instance, and instance_ok().
FILE * command_editor::get_input_stream | ( | void | ) | [static] |
Definition at line 936 of file cmd-edit.cc.
References do_get_input_stream(), instance, and instance_ok().
Referenced by get_input_from_stdin(), and gnu_readline().
std::string command_editor::get_line_buffer | ( | void | ) | [static] |
Definition at line 1146 of file cmd-edit.cc.
References do_get_line_buffer(), instance, and instance_ok().
Referenced by is_completing_dirfns().
FILE * command_editor::get_output_stream | ( | void | ) | [static] |
Definition at line 950 of file cmd-edit.cc.
References do_get_output_stream(), instance, and instance_ok().
Referenced by gnu_readline().
command_editor::quoting_fcn command_editor::get_quoting_function | ( | void | ) | [static] |
Definition at line 1111 of file cmd-edit.cc.
References do_get_quoting_function(), instance, and instance_ok().
command_editor::user_accept_line_fcn command_editor::get_user_accept_line_function | ( | void | ) | [static] |
Definition at line 1132 of file cmd-edit.cc.
References do_get_user_accept_line_function(), instance, and instance_ok().
void command_editor::increment_current_command_number | ( | void | ) | [static] |
Definition at line 1006 of file cmd-edit.cc.
References command_number, instance, and instance_ok().
Referenced by main_loop().
void command_editor::insert_text | ( | const std::string & | text | ) | [static] |
Definition at line 1152 of file cmd-edit.cc.
References do_insert_text(), instance, and instance_ok().
bool command_editor::instance_ok | ( | void | ) | [static, private] |
Definition at line 830 of file cmd-edit.cc.
References singleton_cleanup_list::add(), cleanup_instance(), current_liboctave_error_handler, instance, and make_command_editor().
Referenced by accept_line(), add_event_hook(), add_startup_hook(), blink_matching_paren(), clear_screen(), clear_undo_list(), current_command_number(), decode_prompt_string(), filename_completion_desired(), filename_quoting_desired(), generate_filename_completions(), get_char_is_quoted_function(), get_completion_function(), get_dequoting_function(), get_input_stream(), get_line_buffer(), get_output_stream(), get_quoting_function(), get_user_accept_line_function(), increment_current_command_number(), insert_text(), newline(), re_read_init_file(), read_init_file(), readline(), remove_event_hook(), remove_startup_hook(), reset_current_command_number(), resize_terminal(), restore_terminal_state(), set_basic_quote_characters(), set_basic_word_break_characters(), set_char_is_quoted_function(), set_completer_quote_characters(), set_completer_word_break_characters(), set_completion_append_character(), set_completion_function(), set_dequoting_function(), set_filename_quote_characters(), set_input_stream(), set_name(), set_output_stream(), set_quoting_function(), set_user_accept_line_function(), terminal_cols(), and terminal_rows().
void command_editor::make_command_editor | ( | void | ) | [static, private] |
Definition at line 854 of file cmd-edit.cc.
References gnu_readline(), and instance.
Referenced by instance_ok().
void command_editor::newline | ( | void | ) | [static] |
Definition at line 1159 of file cmd-edit.cc.
References do_newline(), instance, and instance_ok().
virtual std::string command_editor::newline_chars | ( | void | ) | [inline, protected, virtual] |
Definition at line 224 of file cmd-edit.h.
Referenced by do_decode_prompt_string().
command_editor& command_editor::operator= | ( | const command_editor & | ) | [private] |
void command_editor::re_read_init_file | ( | void | ) | [static] |
Definition at line 1253 of file cmd-edit.cc.
References do_re_read_init_file(), instance, and instance_ok().
Referenced by DEFUN().
void command_editor::read_init_file | ( | const std::string & | file = std::string () |
) | [static] |
Definition at line 1242 of file cmd-edit.cc.
References do_read_init_file(), instance, instance_ok(), and file_ops::tilde_expand().
Referenced by DEFUN().
int command_editor::read_octal | ( | const std::string & | s | ) | [protected] |
Definition at line 1536 of file cmd-edit.cc.
Referenced by do_decode_prompt_string().
std::string command_editor::readline | ( | const std::string & | prompt | ) | [static] |
Definition at line 914 of file cmd-edit.cc.
Referenced by gnu_readline().
std::string command_editor::readline | ( | const std::string & | prompt, | |
bool & | eof | |||
) | [static] |
Definition at line 922 of file cmd-edit.cc.
References do_readline(), instance, and instance_ok().
void command_editor::remove_event_hook | ( | event_hook_fcn | f | ) | [static] |
Definition at line 1219 of file cmd-edit.cc.
References event_hook_set, instance, instance_ok(), and restore_event_hook().
Referenced by DEFUN(), and input_event_hook().
void command_editor::remove_startup_hook | ( | startup_hook_fcn | f | ) | [static] |
Definition at line 1191 of file cmd-edit.cc.
References instance, instance_ok(), restore_startup_hook(), and startup_hook_set.
void command_editor::reset_current_command_number | ( | int | n | ) | [static] |
Definition at line 999 of file cmd-edit.cc.
References command_number, instance, and instance_ok().
Referenced by octave_main().
void command_editor::resize_terminal | ( | void | ) | [static] |
Definition at line 978 of file cmd-edit.cc.
References do_resize_terminal(), instance, and instance_ok().
virtual void command_editor::restore_event_hook | ( | void | ) | [inline, protected, virtual] |
Definition at line 280 of file cmd-edit.h.
Referenced by remove_event_hook().
virtual void command_editor::restore_startup_hook | ( | void | ) | [inline, protected, virtual] |
Definition at line 276 of file cmd-edit.h.
Referenced by remove_startup_hook().
void command_editor::restore_terminal_state | ( | void | ) | [static] |
Definition at line 1013 of file cmd-edit.cc.
References do_restore_terminal_state(), instance, and instance_ok().
Referenced by do_octave_atexit().
void command_editor::run_event_hooks | ( | void | ) | [static] |
void command_editor::set_basic_quote_characters | ( | const std::string & | s | ) | [static] |
Definition at line 1041 of file cmd-edit.cc.
References do_set_basic_quote_characters(), instance, and instance_ok().
Referenced by initialize_command_input().
void command_editor::set_basic_word_break_characters | ( | const std::string & | s | ) | [static] |
Definition at line 1027 of file cmd-edit.cc.
References do_set_basic_word_break_characters(), instance, and instance_ok().
Referenced by initialize_command_input().
void command_editor::set_char_is_quoted_function | ( | char_is_quoted_fcn | f | ) | [static] |
Definition at line 1090 of file cmd-edit.cc.
References do_set_char_is_quoted_function(), instance, and instance_ok().
void command_editor::set_completer_quote_characters | ( | const std::string & | s | ) | [static] |
Definition at line 1055 of file cmd-edit.cc.
References do_set_completer_quote_characters(), instance, and instance_ok().
Referenced by initialize_command_input().
void command_editor::set_completer_word_break_characters | ( | const std::string & | s | ) | [static] |
Definition at line 1034 of file cmd-edit.cc.
References do_set_completer_word_break_characters(), instance, and instance_ok().
Referenced by initialize_command_input().
void command_editor::set_completion_append_character | ( | char | c | ) | [static] |
Definition at line 1062 of file cmd-edit.cc.
References do_set_completion_append_character(), instance, and instance_ok().
Referenced by generate_completion().
void command_editor::set_completion_function | ( | completion_fcn | f | ) | [static] |
Definition at line 1069 of file cmd-edit.cc.
References do_set_completion_function(), instance, and instance_ok().
Referenced by initialize_command_input().
void command_editor::set_dequoting_function | ( | dequoting_fcn | f | ) | [static] |
Definition at line 1083 of file cmd-edit.cc.
References do_set_dequoting_function(), instance, and instance_ok().
virtual void command_editor::set_event_hook | ( | startup_hook_fcn | ) | [inline, protected, virtual] |
Definition at line 278 of file cmd-edit.h.
Referenced by add_event_hook().
void command_editor::set_filename_quote_characters | ( | const std::string & | s | ) | [static] |
Definition at line 1048 of file cmd-edit.cc.
References do_set_filename_quote_characters(), instance, and instance_ok().
Referenced by initialize_command_input().
void command_editor::set_input_stream | ( | FILE * | f | ) | [static] |
Definition at line 929 of file cmd-edit.cc.
References do_set_input_stream(), instance, and instance_ok().
Referenced by get_input_from_file(), and get_input_from_stdin().
void command_editor::set_name | ( | const std::string & | n | ) | [static] |
Definition at line 907 of file cmd-edit.cc.
References do_set_name(), instance, and instance_ok().
Referenced by initialize_command_input().
void command_editor::set_output_stream | ( | FILE * | f | ) | [static] |
Definition at line 943 of file cmd-edit.cc.
References do_set_output_stream(), instance, and instance_ok().
void command_editor::set_quoting_function | ( | quoting_fcn | f | ) | [static] |
Definition at line 1076 of file cmd-edit.cc.
References do_set_quoting_function(), instance, and instance_ok().
Referenced by initialize_command_input().
virtual void command_editor::set_startup_hook | ( | startup_hook_fcn | ) | [inline, protected, virtual] |
Definition at line 274 of file cmd-edit.h.
Referenced by add_startup_hook().
void command_editor::set_user_accept_line_function | ( | user_accept_line_fcn | f | ) | [static] |
Definition at line 1097 of file cmd-edit.cc.
References do_set_user_accept_line_function(), instance, and instance_ok().
int command_editor::startup_handler | ( | void | ) | [static, private] |
Definition at line 871 of file cmd-edit.cc.
References f, and startup_hook_set.
Referenced by add_startup_hook().
int command_editor::terminal_cols | ( | void | ) | [static] |
Definition at line 964 of file cmd-edit.cc.
References do_terminal_cols(), instance, and instance_ok().
Referenced by DEFUN(), string_vector::list_in_columns(), more_than_a_screenful(), octave_print_internal(), and octave_print_internal_template().
int command_editor::terminal_rows | ( | void | ) | [static] |
Definition at line 957 of file cmd-edit.cc.
References do_terminal_rows(), instance, and instance_ok().
Referenced by DEFUN(), and more_than_a_screenful().
int command_editor::command_number [protected] |
Definition at line 297 of file cmd-edit.h.
Referenced by current_command_number(), do_decode_prompt_string(), increment_current_command_number(), and reset_current_command_number().
std::set< command_editor::event_hook_fcn > command_editor::event_hook_set [static, private] |
Definition at line 176 of file cmd-edit.h.
Referenced by add_event_hook(), event_handler(), and remove_event_hook().
command_editor * command_editor::instance = 0 [static, private] |
Definition at line 185 of file cmd-edit.h.
Referenced by accept_line(), add_event_hook(), add_startup_hook(), blink_matching_paren(), clear_screen(), clear_undo_list(), current_command_number(), decode_prompt_string(), filename_completion_desired(), filename_quoting_desired(), force_default_editor(), generate_filename_completions(), get_char_is_quoted_function(), get_completion_function(), get_dequoting_function(), get_input_stream(), get_line_buffer(), get_output_stream(), get_quoting_function(), get_user_accept_line_function(), increment_current_command_number(), insert_text(), instance_ok(), make_command_editor(), newline(), re_read_init_file(), read_init_file(), readline(), remove_event_hook(), remove_startup_hook(), reset_current_command_number(), resize_terminal(), restore_terminal_state(), set_basic_quote_characters(), set_basic_word_break_characters(), set_char_is_quoted_function(), set_completer_quote_characters(), set_completer_word_break_characters(), set_completion_append_character(), set_completion_function(), set_dequoting_function(), set_filename_quote_characters(), set_input_stream(), set_name(), set_output_stream(), set_quoting_function(), set_user_accept_line_function(), terminal_cols(), and terminal_rows().
std::set< command_editor::startup_hook_fcn > command_editor::startup_hook_set [static, private] |
Definition at line 174 of file cmd-edit.h.
Referenced by add_startup_hook(), remove_startup_hook(), and startup_handler().