GNU Octave
4.0.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
|
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 int(* | pre_input_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 | |
default_command_editor (void) | |
~default_command_editor (void) | |
void | do_accept_line (void) |
string_vector | do_generate_filename_completions (const std::string &text) |
std::string | do_get_current_line (void) const |
FILE * | do_get_input_stream (void) |
std::string | do_get_line_buffer (void) const |
FILE * | do_get_output_stream (void) |
void | do_insert_text (const std::string &text) |
void | do_kill_full_line (void) |
void | do_newline (void) |
std::string | do_readline (const std::string &prompt, bool &eof) |
void | do_replace_line (const std::string &text, bool clear_undo) |
void | do_set_input_stream (FILE *f) |
void | do_set_output_stream (FILE *f) |
Protected Attributes | |
int | command_number |
std::string | initial_input |
bool | interrupted |
Private Member Functions | |
default_command_editor (const default_command_editor &) | |
default_command_editor & | operator= (const default_command_editor &) |
Private Attributes | |
FILE * | input_stream |
FILE * | output_stream |
Definition at line 822 of file cmd-edit.cc.
Definition at line 56 of file cmd-edit.h.
|
inherited |
Definition at line 50 of file cmd-edit.h.
|
inherited |
Definition at line 54 of file cmd-edit.h.
|
inherited |
Definition at line 48 of file cmd-edit.h.
|
inherited |
Definition at line 46 of file cmd-edit.h.
Definition at line 52 of file cmd-edit.h.
|
inherited |
Definition at line 44 of file cmd-edit.h.
|
inherited |
Definition at line 58 of file cmd-edit.h.
|
inline |
Definition at line 827 of file cmd-edit.cc.
|
inline |
Definition at line 830 of file cmd-edit.cc.
|
private |
|
staticinherited |
Definition at line 1368 of file cmd-edit.cc.
References command_editor::do_accept_line(), command_editor::instance, and command_editor::instance_ok().
Referenced by octave_cmd_exec::execute().
|
staticinherited |
Definition at line 1440 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 gh_manager::do_enable_event_processing(), gh_manager::do_post_event(), Fadd_input_event_hook(), and octave_link::octave_link().
|
staticinherited |
Definition at line 1414 of file cmd-edit.cc.
References command_editor::instance, command_editor::instance_ok(), command_editor::pre_input_handler(), command_editor::pre_input_hook_set, and command_editor::set_pre_input_hook().
Referenced by command_editor::readline().
|
staticinherited |
Definition at line 1388 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.
|
staticinherited |
Definition at line 1196 of file cmd-edit.cc.
References command_editor::do_blink_matching_paren(), command_editor::instance, and command_editor::instance_ok().
Referenced by octave_execute_interpreter().
|
staticinherited |
Definition at line 1140 of file cmd-edit.cc.
References command_editor::do_clear_screen(), command_editor::instance, and command_editor::instance_ok().
Referenced by main_window::clear_command_window_callback(), and Fclc().
|
staticinherited |
Definition at line 1381 of file cmd-edit.cc.
References command_editor::do_clear_undo_list(), command_editor::instance, and command_editor::instance_ok().
|
staticinherited |
Definition at line 1168 of file cmd-edit.cc.
References command_editor::command_number, command_editor::instance, and command_editor::instance_ok().
|
staticinherited |
Definition at line 1161 of file cmd-edit.cc.
References command_editor::do_decode_prompt_string(), command_editor::instance, and command_editor::instance_ok().
Referenced by octave_base_reader::do_input_echo(), and octave_base_reader::octave_gets().
|
virtual |
Implements command_editor.
Definition at line 949 of file cmd-edit.cc.
|
inlineprotectedvirtualinherited |
Definition at line 267 of file cmd-edit.h.
Referenced by command_editor::blink_matching_paren().
|
inlineprotectedvirtualinherited |
Definition at line 255 of file cmd-edit.h.
Referenced by command_editor::clear_screen().
|
inlineprotectedvirtualinherited |
Definition at line 324 of file cmd-edit.h.
Referenced by command_editor::clear_undo_list().
|
protectedvirtualinherited |
Definition at line 1561 of file cmd-edit.cc.
References octave_env::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(), octave_env::polite_directory_format(), command_editor::read_octal(), and octave_base_tm::strftime().
Referenced by command_editor::decode_prompt_string().
Definition at line 269 of file cmd-edit.h.
Referenced by command_editor::erase_empty_line().
|
inlineprotectedvirtualinherited |
Definition at line 342 of file cmd-edit.h.
Referenced by command_editor::filename_completion_desired().
Definition at line 344 of file cmd-edit.h.
Referenced by command_editor::filename_quoting_desired().
|
virtual |
Implements command_editor.
Definition at line 905 of file cmd-edit.cc.
|
inlineprotectedvirtualinherited |
Definition at line 299 of file cmd-edit.h.
Referenced by command_editor::get_char_is_quoted_function().
|
inlineprotectedvirtualinherited |
Definition at line 293 of file cmd-edit.h.
Referenced by command_editor::get_completion_function().
|
virtual |
Implements command_editor.
Definition at line 918 of file cmd-edit.cc.
|
inlineprotectedvirtualinherited |
Definition at line 297 of file cmd-edit.h.
Referenced by command_editor::get_dequoting_function().
|
virtual |
|
virtual |
Implements command_editor.
Definition at line 912 of file cmd-edit.cc.
|
virtual |
|
inlineprotectedvirtualinherited |
Definition at line 295 of file cmd-edit.h.
Referenced by command_editor::get_quoting_function().
|
inlineprotectedvirtualinherited |
Definition at line 302 of file cmd-edit.h.
Referenced by command_editor::get_user_accept_line_function().
|
protectedinherited |
Definition at line 1801 of file cmd-edit.cc.
References command_editor::do_insert_text(), command_editor::do_redisplay(), command_editor::initial_input, and input().
Referenced by command_editor::insert_initial_input().
|
virtual |
Implements command_editor.
Definition at line 937 of file cmd-edit.cc.
|
inlineprotectedvirtualinherited |
Definition at line 348 of file cmd-edit.h.
Referenced by command_editor::interrupt().
|
virtual |
Implements command_editor.
Definition at line 931 of file cmd-edit.cc.
|
virtual |
Implements command_editor.
Definition at line 943 of file cmd-edit.cc.
Definition at line 346 of file cmd-edit.h.
Referenced by command_editor::prefer_env_winsize().
|
inlineprotectedvirtualinherited |
Definition at line 340 of file cmd-edit.h.
Referenced by command_editor::re_read_init_file().
|
inlineprotectedvirtualinherited |
Definition at line 338 of file cmd-edit.h.
Referenced by command_editor::read_init_file().
|
inlineprotectedinherited |
Definition at line 232 of file cmd-edit.h.
Referenced by command_editor::readline().
|
virtual |
Implements command_editor.
Definition at line 872 of file cmd-edit.cc.
References input_stream, octave_fgetl(), and output_stream.
|
inlineprotectedvirtualinherited |
Definition at line 249 of file cmd-edit.h.
Referenced by command_editor::do_insert_initial_input(), and command_editor::redisplay().
|
virtual |
Implements command_editor.
Definition at line 925 of file cmd-edit.cc.
|
inlineprotectedvirtualinherited |
Definition at line 257 of file cmd-edit.h.
Referenced by command_editor::resize_terminal().
|
inlineprotectedvirtualinherited |
Definition at line 265 of file cmd-edit.h.
Referenced by command_editor::restore_terminal_state().
|
inlineprotectedvirtualinherited |
Definition at line 275 of file cmd-edit.h.
Referenced by command_editor::set_basic_quote_characters().
|
inlineprotectedvirtualinherited |
Definition at line 271 of file cmd-edit.h.
Referenced by command_editor::set_basic_word_break_characters().
|
inlineprotectedvirtualinherited |
Definition at line 289 of file cmd-edit.h.
Referenced by command_editor::set_char_is_quoted_function().
|
inlineprotectedvirtualinherited |
Definition at line 279 of file cmd-edit.h.
Referenced by command_editor::set_completer_quote_characters().
|
inlineprotectedvirtualinherited |
Definition at line 273 of file cmd-edit.h.
Referenced by command_editor::set_completer_word_break_characters().
|
inlineprotectedvirtualinherited |
Definition at line 281 of file cmd-edit.h.
Referenced by command_editor::set_completion_append_character().
|
inlineprotectedvirtualinherited |
Definition at line 283 of file cmd-edit.h.
Referenced by command_editor::set_completion_function().
|
inlineprotectedvirtualinherited |
Definition at line 287 of file cmd-edit.h.
Referenced by command_editor::set_dequoting_function().
|
inlineprotectedvirtualinherited |
Definition at line 277 of file cmd-edit.h.
Referenced by command_editor::set_filename_quote_characters().
|
virtual |
Implements command_editor.
Definition at line 881 of file cmd-edit.cc.
References f, and input_stream.
|
inlineprotectedvirtualinherited |
Definition at line 230 of file cmd-edit.h.
Referenced by command_editor::set_name().
|
virtual |
Implements command_editor.
Definition at line 893 of file cmd-edit.cc.
References f, and output_stream.
|
inlineprotectedvirtualinherited |
Definition at line 285 of file cmd-edit.h.
Referenced by command_editor::set_quoting_function().
Definition at line 259 of file cmd-edit.h.
Referenced by command_editor::set_screen_size().
|
inlineprotectedvirtualinherited |
Definition at line 291 of file cmd-edit.h.
Referenced by command_editor::set_user_accept_line_function().
|
inlineprotectedvirtualinherited |
Definition at line 253 of file cmd-edit.h.
Referenced by command_editor::terminal_cols().
|
inlineprotectedvirtualinherited |
Definition at line 251 of file cmd-edit.h.
Referenced by command_editor::terminal_rows().
|
inlineprotectedvirtualinherited |
Definition at line 322 of file cmd-edit.h.
Referenced by command_editor::undo().
Definition at line 1203 of file cmd-edit.cc.
References command_editor::do_erase_empty_line(), command_editor::instance, and command_editor::instance_ok().
Referenced by get_debug_input().
|
protectedinherited |
Definition at line 1841 of file cmd-edit.cc.
References current_liboctave_error_handler.
|
protectedinherited |
Definition at line 1847 of file cmd-edit.cc.
References current_liboctave_error_handler.
Definition at line 1494 of file cmd-edit.cc.
References command_editor::do_filename_completion_desired(), command_editor::instance, and command_editor::instance_ok().
Definition at line 1501 of file cmd-edit.cc.
References command_editor::do_filename_quoting_desired(), command_editor::instance, and command_editor::instance_ok().
|
staticinherited |
Definition at line 989 of file cmd-edit.cc.
References command_editor::instance.
Referenced by octave_initialize_interpreter().
|
staticinherited |
Definition at line 1321 of file cmd-edit.cc.
References command_editor::do_generate_filename_completions(), command_editor::instance, and command_editor::instance_ok().
Referenced by generate_completion().
|
staticinherited |
Definition at line 1307 of file cmd-edit.cc.
References command_editor::do_get_char_is_quoted_function(), command_editor::instance, and command_editor::instance_ok().
|
staticinherited |
Definition at line 1286 of file cmd-edit.cc.
References command_editor::do_get_completion_function(), command_editor::instance, and command_editor::instance_ok().
|
staticinherited |
Definition at line 1334 of file cmd-edit.cc.
References command_editor::do_get_current_line(), command_editor::instance, and command_editor::instance_ok().
Referenced by octave_cmd_exec::execute(), and octave_cmd_eval::execute().
|
staticinherited |
Definition at line 1300 of file cmd-edit.cc.
References command_editor::do_get_dequoting_function(), command_editor::instance, and command_editor::instance_ok().
|
staticinherited |
Definition at line 1098 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 parse_fcn_file().
|
staticinherited |
Definition at line 1328 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().
|
staticinherited |
Definition at line 1112 of file cmd-edit.cc.
References command_editor::do_get_output_stream(), command_editor::instance, and command_editor::instance_ok().
|
staticinherited |
Definition at line 1293 of file cmd-edit.cc.
References command_editor::do_get_quoting_function(), command_editor::instance, and command_editor::instance_ok().
|
staticinherited |
Definition at line 1314 of file cmd-edit.cc.
References command_editor::do_get_user_accept_line_function(), command_editor::instance, and command_editor::instance_ok().
|
staticinherited |
Definition at line 1182 of file cmd-edit.cc.
References command_editor::command_number, command_editor::instance, and command_editor::instance_ok().
Referenced by main_loop().
|
staticinherited |
Definition at line 1003 of file cmd-edit.cc.
References command_editor::do_insert_initial_input(), command_editor::instance, and command_editor::instance_ok().
Referenced by command_editor::readline().
|
staticinherited |
Definition at line 1354 of file cmd-edit.cc.
References command_editor::do_insert_text(), command_editor::instance, and command_editor::instance_ok().
Definition at line 1515 of file cmd-edit.cc.
References arg(), command_editor::do_interrupt(), command_editor::instance, command_editor::instance_ok(), and command_editor::interrupted.
Referenced by octave_cmd_eval::execute(), main_window::execute_debug_callback(), and get_debug_input().
|
staticinherited |
Definition at line 1347 of file cmd-edit.cc.
References command_editor::do_kill_full_line(), command_editor::instance, and command_editor::instance_ok().
Referenced by main_window::clear_command_window_callback().
|
staticinherited |
Definition at line 1361 of file cmd-edit.cc.
References command_editor::do_newline(), command_editor::instance, and command_editor::instance_ok().
|
inlineprotectedvirtualinherited |
Definition at line 263 of file cmd-edit.h.
Referenced by command_editor::do_decode_prompt_string().
|
private |
Definition at line 1508 of file cmd-edit.cc.
References command_editor::do_prefer_env_winsize(), command_editor::instance, and command_editor::instance_ok().
|
staticinherited |
Definition at line 1487 of file cmd-edit.cc.
References command_editor::do_re_read_init_file(), command_editor::instance, and command_editor::instance_ok().
Referenced by Freadline_re_read_init_file().
|
staticinherited |
Definition at line 1476 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 Freadline_read_init_file().
|
protectedinherited |
Definition at line 1819 of file cmd-edit.cc.
Referenced by command_editor::do_decode_prompt_string().
|
staticinherited |
Definition at line 1067 of file cmd-edit.cc.
Referenced by gnu_readline().
|
staticinherited |
Definition at line 1075 of file cmd-edit.cc.
References command_editor::add_pre_input_hook(), command_editor::do_readline(), command_editor::initial_input, command_editor::insert_initial_input(), command_editor::instance, and command_editor::instance_ok().
|
staticinherited |
Definition at line 1119 of file cmd-edit.cc.
References command_editor::do_redisplay(), command_editor::instance, and command_editor::instance_ok().
Referenced by main_window::command_window_undo_callback(), octave_cmd_exec::execute(), and octave_cmd_eval::execute().
|
staticinherited |
Definition at line 1453 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 gh_manager::do_enable_event_processing(), gh_manager::do_process_events(), Fremove_input_event_hook(), and internal_input_event_hook_fcn().
|
staticinherited |
Definition at line 1425 of file cmd-edit.cc.
References command_editor::instance, command_editor::instance_ok(), command_editor::pre_input_hook_set, and command_editor::restore_pre_input_hook().
|
staticinherited |
Definition at line 1399 of file cmd-edit.cc.
References command_editor::instance, command_editor::instance_ok(), command_editor::restore_startup_hook(), and command_editor::startup_hook_set.
|
staticinherited |
Definition at line 1340 of file cmd-edit.cc.
References command_editor::do_replace_line(), command_editor::instance, and command_editor::instance_ok().
Referenced by octave_cmd_exec::execute(), and octave_cmd_eval::execute().
|
staticinherited |
Definition at line 1175 of file cmd-edit.cc.
References command_editor::command_number, command_editor::instance, and command_editor::instance_ok().
Referenced by octave_execute_interpreter().
|
staticinherited |
Definition at line 1147 of file cmd-edit.cc.
References command_editor::do_resize_terminal(), command_editor::instance, and command_editor::instance_ok().
Referenced by main_window::resize_command_window_callback().
|
inlineprotectedvirtualinherited |
Definition at line 336 of file cmd-edit.h.
Referenced by command_editor::remove_event_hook().
|
inlineprotectedvirtualinherited |
Definition at line 332 of file cmd-edit.h.
Referenced by command_editor::remove_pre_input_hook().
|
inlineprotectedvirtualinherited |
Definition at line 328 of file cmd-edit.h.
Referenced by command_editor::remove_startup_hook().
|
staticinherited |
Definition at line 1189 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().
|
staticinherited |
Definition at line 1470 of file cmd-edit.cc.
References command_editor::event_handler().
Referenced by Fwaitfor().
|
staticinherited |
Definition at line 1223 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().
|
staticinherited |
Definition at line 1209 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().
|
staticinherited |
Definition at line 1272 of file cmd-edit.cc.
References command_editor::do_set_char_is_quoted_function(), command_editor::instance, and command_editor::instance_ok().
|
staticinherited |
Definition at line 1237 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().
|
staticinherited |
Definition at line 1216 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().
|
staticinherited |
Definition at line 1244 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().
|
staticinherited |
Definition at line 1251 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().
|
staticinherited |
Definition at line 1265 of file cmd-edit.cc.
References command_editor::do_set_dequoting_function(), command_editor::instance, and command_editor::instance_ok().
|
inlineprotectedvirtualinherited |
Definition at line 334 of file cmd-edit.h.
Referenced by command_editor::add_event_hook().
|
staticinherited |
Definition at line 1230 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().
|
staticinherited |
Definition at line 996 of file cmd-edit.cc.
References command_editor::initial_input, command_editor::instance, and command_editor::instance_ok().
Referenced by octave_cmd_exec::execute(), and octave_cmd_eval::execute().
|
staticinherited |
Definition at line 1091 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_stdin(), and parse_fcn_file().
|
staticinherited |
Definition at line 1060 of file cmd-edit.cc.
References command_editor::do_set_name(), command_editor::instance, and command_editor::instance_ok().
Referenced by initialize_command_input().
|
staticinherited |
Definition at line 1105 of file cmd-edit.cc.
References command_editor::do_set_output_stream(), command_editor::instance, and command_editor::instance_ok().
|
inlineprotectedvirtualinherited |
Definition at line 330 of file cmd-edit.h.
Referenced by command_editor::add_pre_input_hook().
|
staticinherited |
Definition at line 1258 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().
Definition at line 1154 of file cmd-edit.cc.
References command_editor::do_set_screen_size(), command_editor::instance, and command_editor::instance_ok().
Referenced by main_window::set_screen_size_callback().
|
inlineprotectedvirtualinherited |
Definition at line 326 of file cmd-edit.h.
Referenced by command_editor::add_startup_hook().
|
staticinherited |
Definition at line 1279 of file cmd-edit.cc.
References command_editor::do_set_user_accept_line_function(), command_editor::instance, and command_editor::instance_ok().
|
staticinherited |
Definition at line 1133 of file cmd-edit.cc.
References command_editor::do_terminal_cols(), command_editor::instance, and command_editor::instance_ok().
Referenced by Fterminal_size(), string_vector::list_in_columns(), more_than_a_screenful(), octave_print_internal(), and octave_print_internal_template().
|
staticinherited |
Definition at line 1126 of file cmd-edit.cc.
References command_editor::do_terminal_rows(), command_editor::instance, and command_editor::instance_ok().
Referenced by Fterminal_size(), and more_than_a_screenful().
|
staticinherited |
Definition at line 1375 of file cmd-edit.cc.
References command_editor::do_undo(), command_editor::instance, and command_editor::instance_ok().
Referenced by main_window::command_window_undo_callback().
|
protectedinherited |
Definition at line 359 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().
|
protectedinherited |
Definition at line 363 of file cmd-edit.h.
Referenced by command_editor::do_insert_initial_input(), command_editor::readline(), and command_editor::set_initial_input().
|
private |
Definition at line 860 of file cmd-edit.cc.
Referenced by do_get_input_stream(), do_readline(), and do_set_input_stream().
|
protectedinherited |
Definition at line 361 of file cmd-edit.h.
Referenced by command_editor::interrupt().
|
private |
Definition at line 862 of file cmd-edit.cc.
Referenced by do_get_output_stream(), do_readline(), and do_set_output_stream().