Definition at line 722 of file cmd-edit.cc.
typedef int(* command_editor::char_is_quoted_fcn)(const std::string &, int) [inherited] |
Definition at line 54 of file cmd-edit.h.
typedef std::string(* command_editor::completion_fcn)(const std::string &, int) [inherited] |
Definition at line 48 of file cmd-edit.h.
typedef std::string(* command_editor::dequoting_fcn)(const std::string &, int) [inherited] |
Definition at line 52 of file cmd-edit.h.
typedef int(* command_editor::event_hook_fcn)(void) [inherited] |
Definition at line 46 of file cmd-edit.h.
typedef std::string(* command_editor::quoting_fcn)(const std::string &, int, char) [inherited] |
Definition at line 50 of file cmd-edit.h.
typedef int(* command_editor::startup_hook_fcn)(void) [inherited] |
Definition at line 44 of file cmd-edit.h.
typedef void(* command_editor::user_accept_line_fcn)(const std::string &) [inherited] |
Definition at line 56 of file cmd-edit.h.
default_command_editor::default_command_editor | ( | void | ) | [inline] |
Definition at line 727 of file cmd-edit.cc.
default_command_editor::~default_command_editor | ( | void | ) | [inline] |
Definition at line 730 of file cmd-edit.cc.
default_command_editor::default_command_editor | ( | const default_command_editor & | ) | [private] |
void command_editor::accept_line | ( | void | ) | [static, inherited] |
Definition at line 1166 of file cmd-edit.cc.
References command_editor::do_accept_line(), command_editor::instance, and command_editor::instance_ok().
void command_editor::add_event_hook | ( | event_hook_fcn | f | ) | [static, inherited] |
Definition at line 1206 of file cmd-edit.cc.
References command_editor::event_handler(), command_editor::event_hook_set, command_editor::instance, command_editor::instance_ok(), and command_editor::set_event_hook().
Referenced by DEFUN().
void command_editor::add_startup_hook | ( | startup_hook_fcn | f | ) | [static, inherited] |
Definition at line 1180 of file cmd-edit.cc.
References command_editor::instance, command_editor::instance_ok(), command_editor::set_startup_hook(), command_editor::startup_handler(), and command_editor::startup_hook_set.
void command_editor::blink_matching_paren | ( | bool | flag | ) | [static, inherited] |
Definition at line 1020 of file cmd-edit.cc.
References command_editor::do_blink_matching_paren(), command_editor::instance, and command_editor::instance_ok().
Referenced by octave_main().
void command_editor::clear_screen | ( | void | ) | [static, inherited] |
Definition at line 971 of file cmd-edit.cc.
References command_editor::do_clear_screen(), command_editor::instance, and command_editor::instance_ok().
Referenced by DEFUN().
void command_editor::clear_undo_list | ( | void | ) | [static, inherited] |
Definition at line 1173 of file cmd-edit.cc.
References command_editor::do_clear_undo_list(), command_editor::instance, and command_editor::instance_ok().
int command_editor::current_command_number | ( | void | ) | [static, inherited] |
Definition at line 992 of file cmd-edit.cc.
References command_editor::command_number, command_editor::instance, and command_editor::instance_ok().
std::string command_editor::decode_prompt_string | ( | const std::string & | s | ) | [static, inherited] |
Definition at line 985 of file cmd-edit.cc.
References command_editor::do_decode_prompt_string(), command_editor::instance, and command_editor::instance_ok().
Referenced by do_input_echo(), and octave_gets().
void default_command_editor::do_accept_line | ( | void | ) | [virtual] |
Implements command_editor.
Definition at line 824 of file cmd-edit.cc.
virtual void command_editor::do_blink_matching_paren | ( | bool | ) | [inline, protected, virtual, inherited] |
Definition at line 228 of file cmd-edit.h.
Referenced by command_editor::blink_matching_paren().
virtual void command_editor::do_clear_screen | ( | void | ) | [inline, protected, virtual, inherited] |
Definition at line 218 of file cmd-edit.h.
Referenced by command_editor::clear_screen().
virtual void command_editor::do_clear_undo_list | ( | void | ) | [inline, protected, virtual, inherited] |
Definition at line 272 of file cmd-edit.h.
Referenced by command_editor::clear_undo_list().
std::string command_editor::do_decode_prompt_string | ( | const std::string & | s | ) | [protected, virtual, inherited] |
Definition at line 1300 of file cmd-edit.cc.
References base_pathname(), command_editor::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(), command_editor::newline_chars(), octave_rl_prompt_end_ignore(), octave_rl_prompt_start_ignore(), polite_directory_format(), command_editor::read_octal(), and octave_base_tm::strftime().
Referenced by command_editor::decode_prompt_string().
virtual bool command_editor::do_filename_completion_desired | ( | bool | ) | [inline, protected, virtual, inherited] |
Definition at line 286 of file cmd-edit.h.
Referenced by command_editor::filename_completion_desired().
virtual bool command_editor::do_filename_quoting_desired | ( | bool | ) | [inline, protected, virtual, inherited] |
Definition at line 288 of file cmd-edit.h.
Referenced by command_editor::filename_quoting_desired().
string_vector default_command_editor::do_generate_filename_completions | ( | const std::string & | text | ) | [virtual] |
Implements command_editor.
Definition at line 799 of file cmd-edit.cc.
virtual char_is_quoted_fcn command_editor::do_get_char_is_quoted_function | ( | void | ) | const [inline, protected, virtual, inherited] |
Definition at line 258 of file cmd-edit.h.
Referenced by command_editor::get_char_is_quoted_function().
virtual completion_fcn command_editor::do_get_completion_function | ( | void | ) | const [inline, protected, virtual, inherited] |
Definition at line 252 of file cmd-edit.h.
Referenced by command_editor::get_completion_function().
virtual dequoting_fcn command_editor::do_get_dequoting_function | ( | void | ) | const [inline, protected, virtual, inherited] |
Definition at line 256 of file cmd-edit.h.
Referenced by command_editor::get_dequoting_function().
FILE * default_command_editor::do_get_input_stream | ( | void | ) | [virtual] |
std::string default_command_editor::do_get_line_buffer | ( | void | ) | const [virtual] |
Implements command_editor.
Definition at line 806 of file cmd-edit.cc.
FILE * default_command_editor::do_get_output_stream | ( | void | ) | [virtual] |
virtual quoting_fcn command_editor::do_get_quoting_function | ( | void | ) | const [inline, protected, virtual, inherited] |
Definition at line 254 of file cmd-edit.h.
Referenced by command_editor::get_quoting_function().
virtual user_accept_line_fcn command_editor::do_get_user_accept_line_function | ( | void | ) | const [inline, protected, virtual, inherited] |
Definition at line 260 of file cmd-edit.h.
Referenced by command_editor::get_user_accept_line_function().
void default_command_editor::do_insert_text | ( | const std::string & | ) | [virtual] |
Implements command_editor.
Definition at line 812 of file cmd-edit.cc.
void default_command_editor::do_newline | ( | void | ) | [virtual] |
Implements command_editor.
Definition at line 818 of file cmd-edit.cc.
virtual void command_editor::do_re_read_init_file | ( | void | ) | [inline, protected, virtual, inherited] |
Definition at line 284 of file cmd-edit.h.
Referenced by command_editor::re_read_init_file().
virtual void command_editor::do_read_init_file | ( | const std::string & | ) | [inline, protected, virtual, inherited] |
Definition at line 282 of file cmd-edit.h.
Referenced by command_editor::read_init_file().
std::string default_command_editor::do_readline | ( | const std::string & | prompt, | |
bool & | eof | |||
) | [virtual] |
Implements command_editor.
Definition at line 766 of file cmd-edit.cc.
References input_stream, octave_fgetl(), and output_stream.
std::string command_editor::do_readline | ( | const std::string & | prompt | ) | [inline, protected, inherited] |
Definition at line 197 of file cmd-edit.h.
Referenced by command_editor::readline().
virtual void command_editor::do_resize_terminal | ( | void | ) | [inline, protected, virtual, inherited] |
Definition at line 220 of file cmd-edit.h.
Referenced by command_editor::resize_terminal().
virtual void command_editor::do_restore_terminal_state | ( | void | ) | [inline, protected, virtual, inherited] |
Definition at line 226 of file cmd-edit.h.
Referenced by command_editor::restore_terminal_state().
virtual void command_editor::do_set_basic_quote_characters | ( | const std::string & | ) | [inline, protected, virtual, inherited] |
Definition at line 234 of file cmd-edit.h.
Referenced by command_editor::set_basic_quote_characters().
virtual void command_editor::do_set_basic_word_break_characters | ( | const std::string & | ) | [inline, protected, virtual, inherited] |
Definition at line 230 of file cmd-edit.h.
Referenced by command_editor::set_basic_word_break_characters().
virtual void command_editor::do_set_char_is_quoted_function | ( | char_is_quoted_fcn | ) | [inline, protected, virtual, inherited] |
Definition at line 248 of file cmd-edit.h.
Referenced by command_editor::set_char_is_quoted_function().
virtual void command_editor::do_set_completer_quote_characters | ( | const std::string & | ) | [inline, protected, virtual, inherited] |
Definition at line 238 of file cmd-edit.h.
Referenced by command_editor::set_completer_quote_characters().
virtual void command_editor::do_set_completer_word_break_characters | ( | const std::string & | ) | [inline, protected, virtual, inherited] |
Definition at line 232 of file cmd-edit.h.
Referenced by command_editor::set_completer_word_break_characters().
virtual void command_editor::do_set_completion_append_character | ( | char | ) | [inline, protected, virtual, inherited] |
Definition at line 240 of file cmd-edit.h.
Referenced by command_editor::set_completion_append_character().
virtual void command_editor::do_set_completion_function | ( | completion_fcn | ) | [inline, protected, virtual, inherited] |
Definition at line 242 of file cmd-edit.h.
Referenced by command_editor::set_completion_function().
virtual void command_editor::do_set_dequoting_function | ( | dequoting_fcn | ) | [inline, protected, virtual, inherited] |
Definition at line 246 of file cmd-edit.h.
Referenced by command_editor::set_dequoting_function().
virtual void command_editor::do_set_filename_quote_characters | ( | const std::string & | ) | [inline, protected, virtual, inherited] |
Definition at line 236 of file cmd-edit.h.
Referenced by command_editor::set_filename_quote_characters().
void default_command_editor::do_set_input_stream | ( | FILE * | f | ) | [virtual] |
virtual void command_editor::do_set_name | ( | const std::string & | ) | [inline, protected, virtual, inherited] |
Definition at line 195 of file cmd-edit.h.
Referenced by command_editor::set_name().
void default_command_editor::do_set_output_stream | ( | FILE * | f | ) | [virtual] |
virtual void command_editor::do_set_quoting_function | ( | quoting_fcn | ) | [inline, protected, virtual, inherited] |
Definition at line 244 of file cmd-edit.h.
Referenced by command_editor::set_quoting_function().
virtual void command_editor::do_set_user_accept_line_function | ( | user_accept_line_fcn | ) | [inline, protected, virtual, inherited] |
Definition at line 250 of file cmd-edit.h.
Referenced by command_editor::set_user_accept_line_function().
virtual int command_editor::do_terminal_cols | ( | void | ) | [inline, protected, virtual, inherited] |
Definition at line 216 of file cmd-edit.h.
Referenced by command_editor::terminal_cols().
virtual int command_editor::do_terminal_rows | ( | void | ) | [inline, protected, virtual, inherited] |
Definition at line 214 of file cmd-edit.h.
Referenced by command_editor::terminal_rows().
void command_editor::error | ( | int | err_num | ) | [protected, inherited] |
Definition at line 1558 of file cmd-edit.cc.
References current_liboctave_error_handler.
void command_editor::error | ( | const std::string & | s | ) | [protected, inherited] |
Definition at line 1564 of file cmd-edit.cc.
References current_liboctave_error_handler.
Definition at line 1260 of file cmd-edit.cc.
References command_editor::do_filename_completion_desired(), command_editor::instance, and command_editor::instance_ok().
Definition at line 1267 of file cmd-edit.cc.
References command_editor::do_filename_quoting_desired(), command_editor::instance, and command_editor::instance_ok().
void command_editor::force_default_editor | ( | void | ) | [static, inherited] |
Definition at line 864 of file cmd-edit.cc.
References command_editor::instance.
Referenced by octave_main().
string_vector command_editor::generate_filename_completions | ( | const std::string & | text | ) | [static, inherited] |
Definition at line 1139 of file cmd-edit.cc.
References command_editor::do_generate_filename_completions(), command_editor::instance, and command_editor::instance_ok().
Referenced by generate_completion().
command_editor::char_is_quoted_fcn command_editor::get_char_is_quoted_function | ( | void | ) | [static, inherited] |
Definition at line 1125 of file cmd-edit.cc.
References command_editor::do_get_char_is_quoted_function(), command_editor::instance, and command_editor::instance_ok().
command_editor::completion_fcn command_editor::get_completion_function | ( | void | ) | [static, inherited] |
Definition at line 1104 of file cmd-edit.cc.
References command_editor::do_get_completion_function(), command_editor::instance, and command_editor::instance_ok().
command_editor::dequoting_fcn command_editor::get_dequoting_function | ( | void | ) | [static, inherited] |
Definition at line 1118 of file cmd-edit.cc.
References command_editor::do_get_dequoting_function(), command_editor::instance, and command_editor::instance_ok().
FILE * command_editor::get_input_stream | ( | void | ) | [static, inherited] |
Definition at line 936 of file cmd-edit.cc.
References command_editor::do_get_input_stream(), command_editor::instance, and command_editor::instance_ok().
Referenced by get_input_from_stdin(), and gnu_readline().
std::string command_editor::get_line_buffer | ( | void | ) | [static, inherited] |
Definition at line 1146 of file cmd-edit.cc.
References command_editor::do_get_line_buffer(), command_editor::instance, and command_editor::instance_ok().
Referenced by is_completing_dirfns().
FILE * command_editor::get_output_stream | ( | void | ) | [static, inherited] |
Definition at line 950 of file cmd-edit.cc.
References command_editor::do_get_output_stream(), command_editor::instance, and command_editor::instance_ok().
Referenced by gnu_readline().
command_editor::quoting_fcn command_editor::get_quoting_function | ( | void | ) | [static, inherited] |
Definition at line 1111 of file cmd-edit.cc.
References command_editor::do_get_quoting_function(), command_editor::instance, and command_editor::instance_ok().
command_editor::user_accept_line_fcn command_editor::get_user_accept_line_function | ( | void | ) | [static, inherited] |
Definition at line 1132 of file cmd-edit.cc.
References command_editor::do_get_user_accept_line_function(), command_editor::instance, and command_editor::instance_ok().
void command_editor::increment_current_command_number | ( | void | ) | [static, inherited] |
Definition at line 1006 of file cmd-edit.cc.
References command_editor::command_number, command_editor::instance, and command_editor::instance_ok().
Referenced by main_loop().
void command_editor::insert_text | ( | const std::string & | text | ) | [static, inherited] |
Definition at line 1152 of file cmd-edit.cc.
References command_editor::do_insert_text(), command_editor::instance, and command_editor::instance_ok().
void command_editor::newline | ( | void | ) | [static, inherited] |
Definition at line 1159 of file cmd-edit.cc.
References command_editor::do_newline(), command_editor::instance, and command_editor::instance_ok().
virtual std::string command_editor::newline_chars | ( | void | ) | [inline, protected, virtual, inherited] |
Definition at line 224 of file cmd-edit.h.
Referenced by command_editor::do_decode_prompt_string().
default_command_editor& default_command_editor::operator= | ( | const default_command_editor & | ) | [private] |
void command_editor::re_read_init_file | ( | void | ) | [static, inherited] |
Definition at line 1253 of file cmd-edit.cc.
References command_editor::do_re_read_init_file(), command_editor::instance, and command_editor::instance_ok().
Referenced by DEFUN().
void command_editor::read_init_file | ( | const std::string & | file = std::string () |
) | [static, inherited] |
Definition at line 1242 of file cmd-edit.cc.
References command_editor::do_read_init_file(), command_editor::instance, command_editor::instance_ok(), and file_ops::tilde_expand().
Referenced by DEFUN().
int command_editor::read_octal | ( | const std::string & | s | ) | [protected, inherited] |
Definition at line 1536 of file cmd-edit.cc.
Referenced by command_editor::do_decode_prompt_string().
std::string command_editor::readline | ( | const std::string & | prompt | ) | [static, inherited] |
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, inherited] |
Definition at line 922 of file cmd-edit.cc.
References command_editor::do_readline(), command_editor::instance, and command_editor::instance_ok().
void command_editor::remove_event_hook | ( | event_hook_fcn | f | ) | [static, inherited] |
Definition at line 1219 of file cmd-edit.cc.
References command_editor::event_hook_set, command_editor::instance, command_editor::instance_ok(), and command_editor::restore_event_hook().
Referenced by DEFUN(), and input_event_hook().
void command_editor::remove_startup_hook | ( | startup_hook_fcn | f | ) | [static, inherited] |
Definition at line 1191 of file cmd-edit.cc.
References command_editor::instance, command_editor::instance_ok(), command_editor::restore_startup_hook(), and command_editor::startup_hook_set.
void command_editor::reset_current_command_number | ( | int | n | ) | [static, inherited] |
Definition at line 999 of file cmd-edit.cc.
References command_editor::command_number, command_editor::instance, and command_editor::instance_ok().
Referenced by octave_main().
void command_editor::resize_terminal | ( | void | ) | [static, inherited] |
Definition at line 978 of file cmd-edit.cc.
References command_editor::do_resize_terminal(), command_editor::instance, and command_editor::instance_ok().
virtual void command_editor::restore_event_hook | ( | void | ) | [inline, protected, virtual, inherited] |
Definition at line 280 of file cmd-edit.h.
Referenced by command_editor::remove_event_hook().
virtual void command_editor::restore_startup_hook | ( | void | ) | [inline, protected, virtual, inherited] |
Definition at line 276 of file cmd-edit.h.
Referenced by command_editor::remove_startup_hook().
void command_editor::restore_terminal_state | ( | void | ) | [static, inherited] |
Definition at line 1013 of file cmd-edit.cc.
References command_editor::do_restore_terminal_state(), command_editor::instance, and command_editor::instance_ok().
Referenced by do_octave_atexit().
void command_editor::run_event_hooks | ( | void | ) | [static, inherited] |
Definition at line 1236 of file cmd-edit.cc.
References command_editor::event_handler().
Referenced by DEFUN().
void command_editor::set_basic_quote_characters | ( | const std::string & | s | ) | [static, inherited] |
Definition at line 1041 of file cmd-edit.cc.
References command_editor::do_set_basic_quote_characters(), command_editor::instance, and command_editor::instance_ok().
Referenced by initialize_command_input().
void command_editor::set_basic_word_break_characters | ( | const std::string & | s | ) | [static, inherited] |
Definition at line 1027 of file cmd-edit.cc.
References command_editor::do_set_basic_word_break_characters(), command_editor::instance, and command_editor::instance_ok().
Referenced by initialize_command_input().
void command_editor::set_char_is_quoted_function | ( | char_is_quoted_fcn | f | ) | [static, inherited] |
Definition at line 1090 of file cmd-edit.cc.
References command_editor::do_set_char_is_quoted_function(), command_editor::instance, and command_editor::instance_ok().
void command_editor::set_completer_quote_characters | ( | const std::string & | s | ) | [static, inherited] |
Definition at line 1055 of file cmd-edit.cc.
References command_editor::do_set_completer_quote_characters(), command_editor::instance, and command_editor::instance_ok().
Referenced by initialize_command_input().
void command_editor::set_completer_word_break_characters | ( | const std::string & | s | ) | [static, inherited] |
Definition at line 1034 of file cmd-edit.cc.
References command_editor::do_set_completer_word_break_characters(), command_editor::instance, and command_editor::instance_ok().
Referenced by initialize_command_input().
void command_editor::set_completion_append_character | ( | char | c | ) | [static, inherited] |
Definition at line 1062 of file cmd-edit.cc.
References command_editor::do_set_completion_append_character(), command_editor::instance, and command_editor::instance_ok().
Referenced by generate_completion().
void command_editor::set_completion_function | ( | completion_fcn | f | ) | [static, inherited] |
Definition at line 1069 of file cmd-edit.cc.
References command_editor::do_set_completion_function(), command_editor::instance, and command_editor::instance_ok().
Referenced by initialize_command_input().
void command_editor::set_dequoting_function | ( | dequoting_fcn | f | ) | [static, inherited] |
Definition at line 1083 of file cmd-edit.cc.
References command_editor::do_set_dequoting_function(), command_editor::instance, and command_editor::instance_ok().
virtual void command_editor::set_event_hook | ( | startup_hook_fcn | ) | [inline, protected, virtual, inherited] |
Definition at line 278 of file cmd-edit.h.
Referenced by command_editor::add_event_hook().
void command_editor::set_filename_quote_characters | ( | const std::string & | s | ) | [static, inherited] |
Definition at line 1048 of file cmd-edit.cc.
References command_editor::do_set_filename_quote_characters(), command_editor::instance, and command_editor::instance_ok().
Referenced by initialize_command_input().
void command_editor::set_input_stream | ( | FILE * | f | ) | [static, inherited] |
Definition at line 929 of file cmd-edit.cc.
References command_editor::do_set_input_stream(), command_editor::instance, and command_editor::instance_ok().
Referenced by get_input_from_file(), and get_input_from_stdin().
void command_editor::set_name | ( | const std::string & | n | ) | [static, inherited] |
Definition at line 907 of file cmd-edit.cc.
References command_editor::do_set_name(), command_editor::instance, and command_editor::instance_ok().
Referenced by initialize_command_input().
void command_editor::set_output_stream | ( | FILE * | f | ) | [static, inherited] |
Definition at line 943 of file cmd-edit.cc.
References command_editor::do_set_output_stream(), command_editor::instance, and command_editor::instance_ok().
void command_editor::set_quoting_function | ( | quoting_fcn | f | ) | [static, inherited] |
Definition at line 1076 of file cmd-edit.cc.
References command_editor::do_set_quoting_function(), command_editor::instance, and command_editor::instance_ok().
Referenced by initialize_command_input().
virtual void command_editor::set_startup_hook | ( | startup_hook_fcn | ) | [inline, protected, virtual, inherited] |
Definition at line 274 of file cmd-edit.h.
Referenced by command_editor::add_startup_hook().
void command_editor::set_user_accept_line_function | ( | user_accept_line_fcn | f | ) | [static, inherited] |
Definition at line 1097 of file cmd-edit.cc.
References command_editor::do_set_user_accept_line_function(), command_editor::instance, and command_editor::instance_ok().
int command_editor::terminal_cols | ( | void | ) | [static, inherited] |
Definition at line 964 of file cmd-edit.cc.
References command_editor::do_terminal_cols(), command_editor::instance, and command_editor::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, inherited] |
Definition at line 957 of file cmd-edit.cc.
References command_editor::do_terminal_rows(), command_editor::instance, and command_editor::instance_ok().
Referenced by DEFUN(), and more_than_a_screenful().
int command_editor::command_number [protected, inherited] |
Definition at line 297 of file cmd-edit.h.
Referenced by command_editor::current_command_number(), command_editor::do_decode_prompt_string(), command_editor::increment_current_command_number(), and command_editor::reset_current_command_number().
FILE* default_command_editor::input_stream [private] |
Definition at line 754 of file cmd-edit.cc.
Referenced by do_get_input_stream(), do_readline(), and do_set_input_stream().
FILE* default_command_editor::output_stream [private] |
Definition at line 756 of file cmd-edit.cc.
Referenced by do_get_output_stream(), do_readline(), and do_set_output_stream().