#include "input.h"
Public Member Functions | |
input_system (interpreter &interp) | |
void | add_input_event_hook (const hook_function &hook_fcn) |
bool | auto_repeat_debug_command (bool val) |
octave_value | auto_repeat_debug_command (const octave_value_list &args, int nargout) |
bool | auto_repeat_debug_command (void) const |
void | clear_input_event_hooks (void) |
char | completion_append_char (char c) |
octave_value | completion_append_char (const octave_value_list &args, int nargout) |
char | completion_append_char (void) const |
std::string | dir_encoding (const std::string &dir) |
octave_value_list | get_user_input (const octave_value_list &args, int nargout) |
bool | gud_mode (bool flag) |
octave_value | gud_mode (const octave_value_list &args, int nargout) |
bool | gud_mode (void) const |
bool | have_input_event_hooks (void) const |
void | initialize (bool line_editing) |
std::string | interactive_input (const std::string &s, bool &eof) |
std::string | last_debugging_command (const std::string &s) |
std::string | last_debugging_command (void) const |
octave_value | mfile_encoding (const octave_value_list &args, int nargout) |
std::string | mfile_encoding (const std::string &s) |
std::string | mfile_encoding (void) const |
octave_value | PS1 (const octave_value_list &args, int nargout) |
std::string | PS1 (const std::string &s) |
std::string | PS1 (void) const |
octave_value | PS2 (const octave_value_list &args, int nargout) |
std::string | PS2 (const std::string &s) |
std::string | PS2 (void) const |
bool | remove_input_event_hook (const std::string &hook_fcn_id) |
void | run_input_event_hooks (void) |
void | set_completion_append_char (char c) |
void | set_dir_encoding (const std::string &dir, std::string &enc) |
void | set_gud_mode (bool flag) |
void | set_mfile_encoding (const std::string &s) |
void | set_PS1 (const std::string &s) |
void | set_PS2 (const std::string &s) |
bool | yes_or_no (const std::string &prompt) |
Private Member Functions | |
std::string | gnu_readline (const std::string &s, bool &eof) const |
Private Attributes | |
bool | m_auto_repeat_debug_command |
char | m_completion_append_char |
std::unordered_map< std::string, std::string > | m_dir_encoding |
bool | m_gud_mode |
bool | m_initialized |
hook_function_list | m_input_event_hook_functions |
interpreter & | m_interpreter |
std::string | m_last_debugging_command |
std::string | m_mfile_encoding |
std::string | m_PS1 |
std::string | m_PS2 |
input_system::input_system | ( | interpreter & | interp | ) |
void input_system::add_input_event_hook | ( | const hook_function & | hook_fcn | ) |
|
inline |
Definition at line 160 of file input.h.
References m_auto_repeat_debug_command.
octave_value input_system::auto_repeat_debug_command | ( | const octave_value_list & | args, |
int | nargout | ||
) |
|
inline |
Definition at line 155 of file input.h.
References m_auto_repeat_debug_command.
void input_system::clear_input_event_hooks | ( | void | ) |
Referenced by interpreter::shutdown().
|
inline |
Definition at line 113 of file input.h.
References m_completion_append_char.
octave_value input_system::completion_append_char | ( | const octave_value_list & | args, |
int | nargout | ||
) |
Referenced by generate_completion().
|
inline |
Definition at line 108 of file input.h.
References m_completion_append_char.
std::string input_system::dir_encoding | ( | const std::string & | dir | ) |
octave_value_list input_system::get_user_input | ( | const octave_value_list & | args, |
int | nargout | ||
) |
|
private |
|
inline |
Definition at line 126 of file input.h.
References m_gud_mode.
octave_value input_system::gud_mode | ( | const octave_value_list & | args, |
int | nargout | ||
) |
Referenced by debugger::repl().
|
inline |
Definition at line 124 of file input.h.
References m_gud_mode.
bool input_system::have_input_event_hooks | ( | void | ) | const |
void input_system::initialize | ( | bool | line_editing | ) |
Definition at line 412 of file input.cc.
References command_editor::add_event_hook(), command_editor::force_default_editor(), generate_completion(), internal_input_event_hook_fcn(), m_initialized, quoting_filename(), command_editor::set_basic_quote_characters(), command_editor::set_basic_word_break_characters(), command_editor::set_completer_quote_characters(), command_editor::set_completer_word_break_characters(), command_editor::set_completion_function(), command_editor::set_filename_quote_characters(), command_editor::set_name(), and command_editor::set_quoting_function().
Referenced by interpreter::interpreter().
std::string input_system::interactive_input | ( | const std::string & | s, |
bool & | eof | ||
) |
|
inline |
Definition at line 98 of file input.h.
References m_last_debugging_command.
|
inline |
Definition at line 93 of file input.h.
References m_last_debugging_command.
octave_value input_system::mfile_encoding | ( | const octave_value_list & | args, |
int | nargout | ||
) |
Referenced by Ffopen().
|
inline |
Definition at line 139 of file input.h.
References m_mfile_encoding.
|
inline |
Definition at line 137 of file input.h.
References m_mfile_encoding.
octave_value input_system::PS1 | ( | const octave_value_list & | args, |
int | nargout | ||
) |
|
inline |
|
inline |
octave_value input_system::PS2 | ( | const octave_value_list & | args, |
int | nargout | ||
) |
|
inline |
|
inline |
bool input_system::remove_input_event_hook | ( | const std::string & | hook_fcn_id | ) |
void input_system::run_input_event_hooks | ( | void | ) |
Referenced by internal_input_event_hook_fcn().
|
inline |
Definition at line 120 of file input.h.
References m_completion_append_char.
void input_system::set_dir_encoding | ( | const std::string & | dir, |
std::string & | enc | ||
) |
Referenced by load_path::read_dir_config().
|
inline |
Definition at line 133 of file input.h.
References m_gud_mode.
|
inline |
Definition at line 146 of file input.h.
References m_mfile_encoding.
|
inline |
|
inline |
bool input_system::yes_or_no | ( | const std::string & | prompt | ) |
Referenced by Frmdir().
|
private |
Definition at line 208 of file input.h.
Referenced by auto_repeat_debug_command().
|
private |
Definition at line 196 of file input.h.
Referenced by completion_append_char(), and set_completion_append_char().
|
private |
|
private |
Definition at line 199 of file input.h.
Referenced by gud_mode(), and set_gud_mode().
|
private |
Definition at line 217 of file input.h.
Referenced by initialize().
|
private |
|
private |
|
private |
Definition at line 213 of file input.h.
Referenced by last_debugging_command().
|
private |
Definition at line 202 of file input.h.
Referenced by mfile_encoding(), and set_mfile_encoding().
|
private |
|
private |