#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 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 | |
command_editor (const command_editor &)=delete | |
virtual | ~command_editor (void)=default |
command_editor & | operator= (const command_editor &)=delete |
Protected Attributes | |
int | command_number |
std::string | initial_input |
bool | interrupted |
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) |
Static Private Attributes | |
static std::set< event_hook_fcn > | event_hook_set |
static command_editor * | instance = nullptr |
static std::set< pre_input_hook_fcn > | pre_input_hook_set |
static std::set< startup_hook_fcn > | startup_hook_set |
Definition at line 37 of file cmd-edit.h.
typedef int(* octave::command_editor::char_is_quoted_fcn) (const std::string &, int) |
Definition at line 62 of file cmd-edit.h.
typedef std::string(* octave::command_editor::completion_fcn) (const std::string &, int) |
Definition at line 54 of file cmd-edit.h.
typedef char*(* octave::command_editor::completion_hook_fcn) () |
Definition at line 56 of file cmd-edit.h.
typedef std::string(* octave::command_editor::dequoting_fcn) (const std::string &, int) |
Definition at line 60 of file cmd-edit.h.
typedef int(* octave::command_editor::event_hook_fcn) (void) |
Definition at line 52 of file cmd-edit.h.
typedef int(* octave::command_editor::pre_input_hook_fcn) (void) |
Definition at line 50 of file cmd-edit.h.
typedef std::string(* octave::command_editor::quoting_fcn) (const std::string &, int, char) |
Definition at line 58 of file cmd-edit.h.
typedef int(* octave::command_editor::startup_hook_fcn) (void) |
Definition at line 48 of file cmd-edit.h.
typedef void(* octave::command_editor::user_accept_line_fcn) (const std::string &) |
Definition at line 64 of file cmd-edit.h.
|
inlineprotected |
Definition at line 43 of file cmd-edit.h.
|
delete |
|
virtualdefault |
|
static |
Definition at line 1482 of file cmd-edit.cc.
Referenced by octave::octave_cmd_exec::execute(), and octave::octave_cmd_eval::execute().
|
static |
Definition at line 1554 of file cmd-edit.cc.
References octave::event_hook_lock, and f.
Referenced by gh_manager::do_enable_event_processing(), gh_manager::do_post_event(), and octave_link::octave_link().
|
static |
Definition at line 1528 of file cmd-edit.cc.
References f.
|
static |
Definition at line 1502 of file cmd-edit.cc.
References f.
|
static |
Definition at line 1302 of file cmd-edit.cc.
|
inlinestaticprivate |
Definition at line 221 of file cmd-edit.h.
Definition at line 1246 of file cmd-edit.cc.
Referenced by octave::main_window::clear_command_window_callback(), and Fclc().
|
static |
Definition at line 1495 of file cmd-edit.cc.
|
static |
Definition at line 1274 of file cmd-edit.cc.
|
static |
Definition at line 1267 of file cmd-edit.cc.
References s.
Referenced by octave::tree_evaluator::echo_code(), and octave::base_reader::octave_gets().
|
protectedpure virtual |
Implemented in octave::default_command_editor.
|
inlineprotectedvirtual |
Definition at line 268 of file cmd-edit.h.
|
inlineprotectedvirtual |
Definition at line 256 of file cmd-edit.h.
|
inlineprotectedvirtual |
Definition at line 329 of file cmd-edit.h.
|
protectedvirtual |
Definition at line 1672 of file cmd-edit.cc.
References c, i, now, octave_geteuid_wrapper(), octave_rl_prompt_end_ignore(), octave_rl_prompt_start_ignore(), retval, s, and string.
Definition at line 270 of file cmd-edit.h.
Definition at line 347 of file cmd-edit.h.
Definition at line 349 of file cmd-edit.h.
|
protectedpure virtual |
Implemented in octave::default_command_editor.
|
inlineprotectedvirtual |
Definition at line 302 of file cmd-edit.h.
|
inlineprotectedvirtual |
Definition at line 296 of file cmd-edit.h.
|
protectedpure virtual |
Implemented in octave::default_command_editor.
|
inlineprotectedvirtual |
Definition at line 300 of file cmd-edit.h.
|
protectedpure virtual |
Implemented in octave::default_command_editor.
|
protectedpure virtual |
Implemented in octave::default_command_editor.
|
protectedpure virtual |
Implemented in octave::default_command_editor.
|
protectedpure virtual |
Implemented in octave::default_command_editor.
|
inlineprotectedvirtual |
Definition at line 298 of file cmd-edit.h.
|
inlineprotectedvirtual |
Definition at line 305 of file cmd-edit.h.
|
inlineprotectedvirtual |
Definition at line 355 of file cmd-edit.h.
|
protected |
Definition at line 1899 of file cmd-edit.cc.
|
protectedpure virtual |
Implemented in octave::default_command_editor.
|
inlineprotectedvirtual |
Definition at line 353 of file cmd-edit.h.
|
protectedpure virtual |
Implemented in octave::default_command_editor.
|
protectedpure virtual |
Implemented in octave::default_command_editor.
Definition at line 351 of file cmd-edit.h.
|
inlineprotectedvirtual |
Definition at line 345 of file cmd-edit.h.
|
inlineprotectedvirtual |
Definition at line 343 of file cmd-edit.h.
|
inlineprotected |
Definition at line 233 of file cmd-edit.h.
|
protectedpure virtual |
Implemented in octave::default_command_editor.
|
inlineprotectedvirtual |
Definition at line 250 of file cmd-edit.h.
|
protectedpure virtual |
Implemented in octave::default_command_editor.
|
inlineprotectedvirtual |
Definition at line 258 of file cmd-edit.h.
|
inlineprotectedvirtual |
Definition at line 266 of file cmd-edit.h.
|
inlineprotectedvirtual |
Definition at line 278 of file cmd-edit.h.
|
inlineprotectedvirtual |
Definition at line 272 of file cmd-edit.h.
|
inlineprotectedvirtual |
Definition at line 292 of file cmd-edit.h.
|
inlineprotectedvirtual |
Definition at line 282 of file cmd-edit.h.
|
inlineprotectedvirtual |
Definition at line 274 of file cmd-edit.h.
|
inlineprotectedvirtual |
Definition at line 276 of file cmd-edit.h.
|
inlineprotectedvirtual |
Definition at line 284 of file cmd-edit.h.
|
inlineprotectedvirtual |
Definition at line 286 of file cmd-edit.h.
|
inlineprotectedvirtual |
Definition at line 290 of file cmd-edit.h.
|
inlineprotectedvirtual |
Definition at line 280 of file cmd-edit.h.
|
protectedpure virtual |
Implemented in octave::default_command_editor.
|
inlineprotectedvirtual |
Definition at line 231 of file cmd-edit.h.
|
protectedpure virtual |
Implemented in octave::default_command_editor.
|
inlineprotectedvirtual |
Definition at line 288 of file cmd-edit.h.
|
inlineprotectedvirtual |
Definition at line 260 of file cmd-edit.h.
|
inlineprotectedvirtual |
Definition at line 294 of file cmd-edit.h.
|
inlineprotectedvirtual |
Definition at line 254 of file cmd-edit.h.
|
inlineprotectedvirtual |
Definition at line 252 of file cmd-edit.h.
|
inlineprotectedvirtual |
Definition at line 327 of file cmd-edit.h.
Definition at line 1309 of file cmd-edit.cc.
|
protected |
Definition at line 1939 of file cmd-edit.cc.
|
protected |
Definition at line 1945 of file cmd-edit.cc.
References s.
|
staticprivate |
Definition at line 1145 of file cmd-edit.cc.
References octave::event_hook_lock, f, octave::mutex::lock(), octave_interrupt_state, and octave::mutex::unlock().
Definition at line 1598 of file cmd-edit.cc.
References arg.
Definition at line 1605 of file cmd-edit.cc.
References arg.
|
static |
Definition at line 1101 of file cmd-edit.cc.
|
static |
Definition at line 1427 of file cmd-edit.cc.
Referenced by generate_completion().
|
static |
Definition at line 1413 of file cmd-edit.cc.
|
static |
Definition at line 1392 of file cmd-edit.cc.
|
static |
Definition at line 1440 of file cmd-edit.cc.
Referenced by octave::octave_cmd_exec::execute(), and octave::octave_cmd_eval::execute().
|
static |
Definition at line 1406 of file cmd-edit.cc.
|
static |
Definition at line 1204 of file cmd-edit.cc.
Referenced by get_input_from_stdin().
|
static |
Definition at line 1434 of file cmd-edit.cc.
Referenced by find_indexed_expression(), and is_completing_dirfns().
|
static |
Definition at line 1218 of file cmd-edit.cc.
|
static |
Definition at line 1448 of file cmd-edit.cc.
Referenced by generate_completion(), and generate_possible_completions().
|
static |
Definition at line 1399 of file cmd-edit.cc.
|
static |
Definition at line 1420 of file cmd-edit.cc.
|
staticprivate |
Definition at line 1639 of file cmd-edit.cc.
|
static |
Definition at line 1288 of file cmd-edit.cc.
|
static |
Definition at line 1115 of file cmd-edit.cc.
|
static |
Definition at line 1468 of file cmd-edit.cc.
|
staticprivate |
Definition at line 1067 of file cmd-edit.cc.
References singleton_cleanup_list::add(), and retval.
Definition at line 1619 of file cmd-edit.cc.
Referenced by octave::octave_cmd_debug::execute().
|
static |
Definition at line 1461 of file cmd-edit.cc.
Referenced by octave::main_window::clear_command_window_callback().
|
staticprivate |
Definition at line 1091 of file cmd-edit.cc.
References gnu_readline().
|
static |
Definition at line 1475 of file cmd-edit.cc.
|
inlineprotectedvirtual |
Definition at line 264 of file cmd-edit.h.
|
delete |
|
staticprivate |
Definition at line 1133 of file cmd-edit.cc.
References f.
Definition at line 1612 of file cmd-edit.cc.
References arg.
|
static |
Definition at line 1591 of file cmd-edit.cc.
|
static |
Definition at line 1580 of file cmd-edit.cc.
References file, string, and octave::sys::file_ops::tilde_expand().
|
protected |
Definition at line 1917 of file cmd-edit.cc.
|
static |
Definition at line 1173 of file cmd-edit.cc.
Referenced by gnu_readline().
|
static |
Definition at line 1181 of file cmd-edit.cc.
|
static |
Definition at line 1225 of file cmd-edit.cc.
Referenced by octave::main_window::command_window_undo_callback(), octave::octave_cmd_exec::execute(), and octave::octave_cmd_eval::execute().
|
static |
Definition at line 1562 of file cmd-edit.cc.
References octave::event_hook_lock, f, and p.
Referenced by gh_manager::do_enable_event_processing(), and gh_manager::do_process_events().
|
static |
Definition at line 1539 of file cmd-edit.cc.
|
static |
Definition at line 1513 of file cmd-edit.cc.
|
static |
Definition at line 1454 of file cmd-edit.cc.
Referenced by octave::octave_cmd_exec::execute(), and octave::octave_cmd_eval::execute().
|
static |
Definition at line 1281 of file cmd-edit.cc.
|
static |
Definition at line 1253 of file cmd-edit.cc.
Referenced by octave::main_window::resize_command_window_callback().
|
inlineprotectedvirtual |
Definition at line 341 of file cmd-edit.h.
|
inlineprotectedvirtual |
Definition at line 337 of file cmd-edit.h.
|
inlineprotectedvirtual |
Definition at line 333 of file cmd-edit.h.
|
static |
Definition at line 1295 of file cmd-edit.cc.
|
static |
Definition at line 1574 of file cmd-edit.cc.
Referenced by while().
|
static |
Definition at line 1329 of file cmd-edit.cc.
References s.
Referenced by initialize_command_input().
|
static |
Definition at line 1315 of file cmd-edit.cc.
References s.
Referenced by initialize_command_input().
|
static |
Definition at line 1378 of file cmd-edit.cc.
References f.
|
static |
Definition at line 1343 of file cmd-edit.cc.
References s.
Referenced by initialize_command_input().
|
static |
Definition at line 1322 of file cmd-edit.cc.
References s.
Referenced by initialize_command_input().
|
static |
|
static |
Definition at line 1357 of file cmd-edit.cc.
References f.
Referenced by initialize_command_input().
|
static |
Definition at line 1371 of file cmd-edit.cc.
References f.
|
inlineprotectedvirtual |
Definition at line 339 of file cmd-edit.h.
|
static |
Definition at line 1336 of file cmd-edit.cc.
References s.
Referenced by initialize_command_input().
|
static |
Definition at line 1108 of file cmd-edit.cc.
References text.
Referenced by octave::octave_cmd_exec::execute(), and octave::octave_cmd_eval::execute().
|
static |
|
static |
Definition at line 1166 of file cmd-edit.cc.
Referenced by initialize_command_input().
|
static |
Definition at line 1211 of file cmd-edit.cc.
References f.
|
inlineprotectedvirtual |
Definition at line 335 of file cmd-edit.h.
|
static |
Definition at line 1364 of file cmd-edit.cc.
References f.
Referenced by initialize_command_input().
|
static |
Definition at line 1260 of file cmd-edit.cc.
Referenced by octave::main_window::set_screen_size_callback().
|
inlineprotectedvirtual |
Definition at line 331 of file cmd-edit.h.
|
static |
Definition at line 1385 of file cmd-edit.cc.
References f.
|
staticprivate |
Definition at line 1121 of file cmd-edit.cc.
References f.
|
static |
Definition at line 1239 of file cmd-edit.cc.
Referenced by string_vector::list_in_columns(), more_than_a_screenful(), octave_print_diag_matrix_internal(), octave_print_internal(), octave_print_internal_template(), and octave_print_matrix_internal().
|
static |
Definition at line 1232 of file cmd-edit.cc.
Referenced by more_than_a_screenful().
|
static |
Definition at line 1489 of file cmd-edit.cc.
Referenced by octave::main_window::command_window_undo_callback().
|
protected |
Definition at line 366 of file cmd-edit.h.
|
staticprivate |
Definition at line 216 of file cmd-edit.h.
|
protected |
Definition at line 370 of file cmd-edit.h.
|
staticprivate |
Definition at line 219 of file cmd-edit.h.
|
protected |
Definition at line 368 of file cmd-edit.h.
|
staticprivate |
Definition at line 214 of file cmd-edit.h.
|
staticprivate |
Definition at line 212 of file cmd-edit.h.