Public Types | |
typedef int(* | char_is_quoted_fcn) (const std::string &, int) |
typedef std::string(* | completion_fcn) (const std::string &, int) |
typedef char *(* | completion_hook_fcn) () |
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 (const default_command_editor &)=delete | |
default_command_editor (void) | |
~default_command_editor (void)=default | |
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) |
char | do_get_prev_char (int) const |
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) |
default_command_editor & | operator= (const default_command_editor &)=delete |
Static Public Member Functions | |
static void | accept_line (void) |
static void | add_event_hook (event_hook_fcn f) |
static void | add_pre_input_hook (pre_input_hook_fcn f) |
static void | add_startup_hook (startup_hook_fcn f) |
static void | blink_matching_paren (bool flag) |
static void | clear_screen (bool skip_redisplay=false) |
static void | clear_undo_list (void) |
static int | current_command_number (void) |
static std::string | decode_prompt_string (const std::string &s) |
static bool | erase_empty_line (bool flag) |
static bool | event_loop_interrupted (void) |
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 std::string | get_current_line (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 char | get_prev_char (int) |
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 int | insert_initial_input (void) |
static void | insert_text (const std::string &text) |
static bool | interrupt (bool=true) |
static void | interrupt_event_loop (bool flag=true) |
static void | kill_full_line (void) |
static void | newline (void) |
static bool | prefer_env_winsize (bool) |
static void | re_read_init_file (void) |
static void | read_init_file (const std::string &file="") |
static std::string | readline (const std::string &prompt) |
static std::string | readline (const std::string &prompt, bool &eof) |
static void | redisplay (void) |
static void | remove_event_hook (event_hook_fcn f) |
static void | remove_pre_input_hook (pre_input_hook_fcn f) |
static void | remove_startup_hook (startup_hook_fcn f) |
static void | replace_line (const std::string &text, bool clear_undo=true) |
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_initial_input (const std::string &text) |
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_screen_size (int ht, int wd) |
static void | set_user_accept_line_function (user_accept_line_fcn f) |
static int | terminal_cols (void) |
static int | terminal_rows (void) |
static bool | undo (void) |
Protected Attributes | |
int | m_cols |
int | m_command_number |
std::string | m_initial_input |
bool | m_interrupt_event_loop |
bool | m_interrupted |
int | m_rows |
Static Private Member Functions | |
static void | cleanup_instance (void) |
static int | event_handler (void) |
static void | handle_interrupt_signal (void) |
static bool | instance_ok (void) |
static void | make_command_editor (void) |
static int | pre_input_handler (void) |
static int | startup_handler (void) |
Private Attributes | |
FILE * | input_stream |
FILE * | output_stream |
Static Private Attributes | |
static std::set< event_hook_fcn > | event_hook_set |
static std::set< pre_input_hook_fcn > | pre_input_hook_set |
static command_editor * | s_instance = nullptr |
static std::set< startup_hook_fcn > | startup_hook_set |
Definition at line 922 of file cmd-edit.cc.
|
inherited |
Definition at line 67 of file cmd-edit.h.
|
inherited |
Definition at line 59 of file cmd-edit.h.
|
inherited |
Definition at line 61 of file cmd-edit.h.
|
inherited |
Definition at line 65 of file cmd-edit.h.
|
inherited |
Definition at line 57 of file cmd-edit.h.
|
inherited |
Definition at line 55 of file cmd-edit.h.
|
inherited |
Definition at line 63 of file cmd-edit.h.
|
inherited |
Definition at line 53 of file cmd-edit.h.
|
inherited |
Definition at line 69 of file cmd-edit.h.
|
inline |
Definition at line 927 of file cmd-edit.cc.
|
delete |
|
default |
|
staticinherited |
Definition at line 1480 of file cmd-edit.cc.
Referenced by octave::octave_qscintilla::contextmenu_run(), octave::main_window::execute_command_in_terminal(), and octave::main_window::run_file_in_terminal().
|
staticinherited |
Definition at line 1552 of file cmd-edit.cc.
References octave::event_hook_lock, and f.
Referenced by octave::event_manager::event_manager(), gh_manager::enable_event_processing(), and gh_manager::post_event().
|
staticinherited |
Definition at line 1526 of file cmd-edit.cc.
References f.
|
staticinherited |
Definition at line 1500 of file cmd-edit.cc.
References f.
|
staticinherited |
Definition at line 1302 of file cmd-edit.cc.
Referenced by octave::interpreter::execute().
|
inlinestaticprivateinherited |
Definition at line 230 of file cmd-edit.h.
|
staticinherited |
Definition at line 1248 of file cmd-edit.cc.
Referenced by Fclc(), and octave::main_window::handle_clear_command_window_request().
|
staticinherited |
Definition at line 1493 of file cmd-edit.cc.
|
staticinherited |
Definition at line 1275 of file cmd-edit.cc.
|
staticinherited |
Definition at line 1269 of file cmd-edit.cc.
Referenced by octave::tree_evaluator::echo_code(), octave::lexer::fill_flex_buffer(), octave::debugger::repl(), and octave::push_parser::run().
|
virtual |
Implements octave::command_editor.
Definition at line 1057 of file cmd-edit.cc.
|
inlineprotectedvirtualinherited |
Definition at line 285 of file cmd-edit.h.
|
inlineprotectedvirtualinherited |
Definition at line 269 of file cmd-edit.h.
|
inlineprotectedvirtualinherited |
Definition at line 346 of file cmd-edit.h.
|
protectedvirtualinherited |
Definition at line 1682 of file cmd-edit.cc.
References n, octave_geteuid_wrapper(), octave_rl_prompt_end_ignore(), octave_rl_prompt_start_ignore(), retval, and octave::sys::base_tm::strftime().
|
inlineprotectedvirtualinherited |
Definition at line 287 of file cmd-edit.h.
|
inlineprotectedinherited |
Definition at line 376 of file cmd-edit.h.
|
inlineprotectedvirtualinherited |
Definition at line 364 of file cmd-edit.h.
|
inlineprotectedvirtualinherited |
Definition at line 366 of file cmd-edit.h.
|
virtual |
Implements octave::command_editor.
Definition at line 1007 of file cmd-edit.cc.
|
inlineprotectedvirtualinherited |
Definition at line 319 of file cmd-edit.h.
|
inlineprotectedvirtualinherited |
Definition at line 313 of file cmd-edit.h.
|
virtual |
Implements octave::command_editor.
Definition at line 1020 of file cmd-edit.cc.
|
inlineprotectedvirtualinherited |
Definition at line 317 of file cmd-edit.h.
|
virtual |
Implements octave::command_editor.
Definition at line 989 of file cmd-edit.cc.
|
virtual |
Implements octave::command_editor.
Definition at line 1014 of file cmd-edit.cc.
|
virtual |
Implements octave::command_editor.
Definition at line 1001 of file cmd-edit.cc.
|
virtual |
Implements octave::command_editor.
Definition at line 1027 of file cmd-edit.cc.
|
inlineprotectedvirtualinherited |
Definition at line 315 of file cmd-edit.h.
|
inlineprotectedvirtualinherited |
Definition at line 322 of file cmd-edit.h.
|
inlineprotectedvirtualinherited |
Definition at line 372 of file cmd-edit.h.
|
protectedinherited |
Definition at line 1909 of file cmd-edit.cc.
References input().
|
virtual |
Implements octave::command_editor.
Definition at line 1045 of file cmd-edit.cc.
|
inlineprotectedvirtualinherited |
Definition at line 370 of file cmd-edit.h.
|
inlineprotectedinherited |
Definition at line 374 of file cmd-edit.h.
|
virtual |
Implements octave::command_editor.
Definition at line 1039 of file cmd-edit.cc.
|
virtual |
Implements octave::command_editor.
Definition at line 1051 of file cmd-edit.cc.
|
inlineprotectedvirtualinherited |
Definition at line 368 of file cmd-edit.h.
|
inlineprotectedvirtualinherited |
Definition at line 362 of file cmd-edit.h.
|
inlineprotectedvirtualinherited |
Definition at line 360 of file cmd-edit.h.
|
inlineprotectedinherited |
Definition at line 246 of file cmd-edit.h.
|
virtual |
Implements octave::command_editor.
Definition at line 974 of file cmd-edit.cc.
References octave_fgetl().
|
inlineprotectedvirtualinherited |
Definition at line 263 of file cmd-edit.h.
|
virtual |
Implements octave::command_editor.
Definition at line 1033 of file cmd-edit.cc.
|
inlineprotectedvirtualinherited |
Definition at line 271 of file cmd-edit.h.
|
inlineprotectedvirtualinherited |
Definition at line 283 of file cmd-edit.h.
|
inlineprotectedvirtualinherited |
Definition at line 295 of file cmd-edit.h.
|
inlineprotectedvirtualinherited |
Definition at line 289 of file cmd-edit.h.
|
inlineprotectedvirtualinherited |
Definition at line 309 of file cmd-edit.h.
|
inlineprotectedvirtualinherited |
Definition at line 299 of file cmd-edit.h.
|
inlineprotectedvirtualinherited |
Definition at line 291 of file cmd-edit.h.
|
inlineprotectedvirtualinherited |
Definition at line 293 of file cmd-edit.h.
|
inlineprotectedvirtualinherited |
Definition at line 301 of file cmd-edit.h.
|
inlineprotectedvirtualinherited |
Definition at line 303 of file cmd-edit.h.
|
inlineprotectedvirtualinherited |
Definition at line 307 of file cmd-edit.h.
|
inlineprotectedvirtualinherited |
Definition at line 297 of file cmd-edit.h.
|
virtual |
|
inlineprotectedvirtualinherited |
Definition at line 244 of file cmd-edit.h.
|
virtual |
|
inlineprotectedvirtualinherited |
Definition at line 305 of file cmd-edit.h.
|
inlineprotectedvirtualinherited |
Definition at line 273 of file cmd-edit.h.
|
inlineprotectedvirtualinherited |
Definition at line 311 of file cmd-edit.h.
|
inlineprotectedvirtualinherited |
Definition at line 267 of file cmd-edit.h.
|
inlineprotectedvirtualinherited |
Definition at line 265 of file cmd-edit.h.
|
inlineprotectedvirtualinherited |
Definition at line 344 of file cmd-edit.h.
|
staticinherited |
Definition at line 1309 of file cmd-edit.cc.
Referenced by octave::octave_qscintilla::context_run(), octave::octave_qscintilla::contextmenu_run(), and octave::debugger::repl().
|
protectedinherited |
Definition at line 1955 of file cmd-edit.cc.
|
protectedinherited |
Definition at line 1949 of file cmd-edit.cc.
|
staticprivateinherited |
Definition at line 1151 of file cmd-edit.cc.
References octave::event_hook_lock, f, octave::mutex::lock(), octave_interrupt_state, and octave::mutex::unlock().
|
staticinherited |
Definition at line 1643 of file cmd-edit.cc.
Referenced by octave::action_container::run().
|
staticinherited |
Definition at line 1596 of file cmd-edit.cc.
|
staticinherited |
Definition at line 1603 of file cmd-edit.cc.
|
staticinherited |
Definition at line 1097 of file cmd-edit.cc.
|
staticinherited |
Definition at line 1424 of file cmd-edit.cc.
|
staticinherited |
Definition at line 1410 of file cmd-edit.cc.
|
staticinherited |
Definition at line 1392 of file cmd-edit.cc.
|
staticinherited |
Definition at line 1438 of file cmd-edit.cc.
Referenced by octave::octave_qscintilla::contextmenu_run(), octave::main_window::execute_command_in_terminal(), and octave::main_window::run_file_in_terminal().
|
staticinherited |
Definition at line 1404 of file cmd-edit.cc.
|
staticinherited |
Definition at line 1210 of file cmd-edit.cc.
|
staticinherited |
Definition at line 1432 of file cmd-edit.cc.
|
staticinherited |
Definition at line 1223 of file cmd-edit.cc.
|
staticinherited |
Definition at line 1446 of file cmd-edit.cc.
|
staticinherited |
Definition at line 1398 of file cmd-edit.cc.
|
staticinherited |
Definition at line 1417 of file cmd-edit.cc.
|
staticprivateinherited |
Definition at line 1649 of file cmd-edit.cc.
|
staticinherited |
Definition at line 1288 of file cmd-edit.cc.
Referenced by octave::interpreter::main_loop().
|
staticinherited |
Definition at line 1111 of file cmd-edit.cc.
|
staticinherited |
Definition at line 1466 of file cmd-edit.cc.
|
staticprivateinherited |
Definition at line 1063 of file cmd-edit.cc.
References singleton_cleanup_list::add(), and retval.
|
staticinherited |
Definition at line 1616 of file cmd-edit.cc.
References retval.
Referenced by octave::file_editor_tab::confirm_dbquit_and_save(), octave::main_window::debug_continue(), octave::main_window::debug_quit(), octave::main_window::debug_step_into(), octave::main_window::debug_step_out(), octave::main_window::debug_step_over(), and octave::debugger::repl().
|
staticinherited |
Definition at line 1636 of file cmd-edit.cc.
Referenced by octave::octave_qscintilla::contextmenu_run(), octave::main_window::execute_command_in_terminal(), octave::action_container::run(), and octave::main_window::run_file_in_terminal().
|
staticinherited |
Definition at line 1459 of file cmd-edit.cc.
Referenced by octave::main_window::handle_clear_command_window_request().
|
staticprivateinherited |
Definition at line 1087 of file cmd-edit.cc.
|
staticinherited |
Definition at line 1473 of file cmd-edit.cc.
|
inlineprotectedvirtualinherited |
Definition at line 281 of file cmd-edit.h.
|
delete |
|
staticprivateinherited |
Definition at line 1134 of file cmd-edit.cc.
References f.
|
staticinherited |
Definition at line 1610 of file cmd-edit.cc.
|
staticinherited |
Definition at line 1589 of file cmd-edit.cc.
|
staticinherited |
Definition at line 1578 of file cmd-edit.cc.
References octave::sys::file_ops::tilde_expand().
|
protectedinherited |
Definition at line 1927 of file cmd-edit.cc.
|
staticinherited |
Definition at line 1179 of file cmd-edit.cc.
|
staticinherited |
Definition at line 1187 of file cmd-edit.cc.
References retval.
|
staticinherited |
Definition at line 1229 of file cmd-edit.cc.
Referenced by octave::octave_qscintilla::contextmenu_run(), octave::main_window::execute_command_in_terminal(), octave::main_window::handle_undo_request(), and octave::main_window::run_file_in_terminal().
|
staticinherited |
Definition at line 1560 of file cmd-edit.cc.
References octave::event_hook_lock, and f.
Referenced by gh_manager::enable_event_processing(), and gh_manager::process_events().
|
staticinherited |
Definition at line 1537 of file cmd-edit.cc.
References f.
|
staticinherited |
Definition at line 1511 of file cmd-edit.cc.
References f.
|
staticinherited |
Definition at line 1452 of file cmd-edit.cc.
Referenced by octave::octave_qscintilla::contextmenu_run(), and octave::main_window::execute_command_in_terminal().
|
staticinherited |
Definition at line 1281 of file cmd-edit.cc.
References n.
|
staticinherited |
Definition at line 1255 of file cmd-edit.cc.
|
inlineprotectedvirtualinherited |
Definition at line 358 of file cmd-edit.h.
|
inlineprotectedvirtualinherited |
Definition at line 354 of file cmd-edit.h.
|
inlineprotectedvirtualinherited |
Definition at line 350 of file cmd-edit.h.
|
staticinherited |
Definition at line 1295 of file cmd-edit.cc.
Referenced by octave::interpreter::shutdown().
|
staticinherited |
Definition at line 1572 of file cmd-edit.cc.
Referenced by Fwaitfor().
|
staticinherited |
Definition at line 1329 of file cmd-edit.cc.
|
staticinherited |
Definition at line 1315 of file cmd-edit.cc.
|
staticinherited |
Definition at line 1378 of file cmd-edit.cc.
References f.
|
staticinherited |
Definition at line 1343 of file cmd-edit.cc.
|
staticinherited |
Definition at line 1322 of file cmd-edit.cc.
|
staticinherited |
Definition at line 1350 of file cmd-edit.cc.
|
staticinherited |
Definition at line 1357 of file cmd-edit.cc.
References f.
|
staticinherited |
Definition at line 1371 of file cmd-edit.cc.
References f.
|
inlineprotectedvirtualinherited |
Definition at line 356 of file cmd-edit.h.
|
staticinherited |
Definition at line 1336 of file cmd-edit.cc.
|
staticinherited |
Definition at line 1104 of file cmd-edit.cc.
Referenced by octave::octave_qscintilla::contextmenu_run(), octave::main_window::execute_command_in_terminal(), and octave::main_window::run_file_in_terminal().
|
staticinherited |
Definition at line 1203 of file cmd-edit.cc.
References f.
|
staticinherited |
Definition at line 1172 of file cmd-edit.cc.
References n.
|
staticinherited |
Definition at line 1216 of file cmd-edit.cc.
References f.
|
inlineprotectedvirtualinherited |
Definition at line 352 of file cmd-edit.h.
|
staticinherited |
Definition at line 1364 of file cmd-edit.cc.
References f.
|
staticinherited |
Definition at line 1262 of file cmd-edit.cc.
Referenced by Fterminal_size(), and octave::main_window::set_screen_size().
|
inlineprotectedvirtualinherited |
Definition at line 348 of file cmd-edit.h.
|
staticinherited |
Definition at line 1385 of file cmd-edit.cc.
References f.
|
staticprivateinherited |
Definition at line 1117 of file cmd-edit.cc.
References f.
|
staticinherited |
Definition at line 1242 of file cmd-edit.cc.
Referenced by Fterminal_size(), string_vector::list_in_columns(), octave::more_than_a_screenful(), octave_print_diag_matrix_internal(), octave_print_internal(), octave_print_internal_template(), and octave_print_matrix_internal().
|
staticinherited |
Definition at line 1236 of file cmd-edit.cc.
Referenced by Fterminal_size(), and octave::more_than_a_screenful().
|
staticinherited |
Definition at line 1487 of file cmd-edit.cc.
Referenced by octave::main_window::handle_undo_request().
|
staticprivateinherited |
Definition at line 225 of file cmd-edit.h.
|
private |
Definition at line 968 of file cmd-edit.cc.
|
protectedinherited |
Definition at line 393 of file cmd-edit.h.
|
protectedinherited |
Definition at line 390 of file cmd-edit.h.
|
protectedinherited |
Definition at line 399 of file cmd-edit.h.
|
protectedinherited |
Definition at line 397 of file cmd-edit.h.
|
protectedinherited |
Definition at line 395 of file cmd-edit.h.
|
protectedinherited |
Definition at line 392 of file cmd-edit.h.
|
private |
Definition at line 970 of file cmd-edit.cc.
|
staticprivateinherited |
Definition at line 223 of file cmd-edit.h.
|
staticprivateinherited |
Definition at line 228 of file cmd-edit.h.
|
staticprivateinherited |
Definition at line 221 of file cmd-edit.h.