GNU Octave  4.2.1
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | Private Attributes | List of all members
octave::default_command_editor Class Reference
Inheritance diagram for octave::default_command_editor:
Inheritance graph
[legend]
Collaboration diagram for octave::default_command_editor:
Collaboration graph
[legend]

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 (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)
 
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)
 

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 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 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 Member Functions

virtual void do_blink_matching_paren (bool)
 
virtual void do_clear_screen (bool)
 
virtual void do_clear_undo_list (void)
 
virtual std::string do_decode_prompt_string (const std::string &)
 
virtual bool do_erase_empty_line (bool)
 
virtual bool do_filename_completion_desired (bool)
 
virtual bool do_filename_quoting_desired (bool)
 
virtual char_is_quoted_fcn do_get_char_is_quoted_function (void) const
 
virtual completion_fcn do_get_completion_function (void) const
 
virtual dequoting_fcn do_get_dequoting_function (void) const
 
virtual quoting_fcn do_get_quoting_function (void) const
 
virtual user_accept_line_fcn do_get_user_accept_line_function (void) const
 
int do_insert_initial_input (void)
 
virtual void do_interrupt (bool)
 
virtual bool do_prefer_env_winsize (bool)
 
virtual void do_re_read_init_file (void)
 
virtual void do_read_init_file (const std::string &)
 
std::string do_readline (const std::string &prompt)
 
virtual void do_redisplay (void)
 
virtual void do_resize_terminal (void)
 
virtual void do_restore_terminal_state (void)
 
virtual void do_set_basic_quote_characters (const std::string &)
 
virtual void do_set_basic_word_break_characters (const std::string &)
 
virtual void do_set_char_is_quoted_function (char_is_quoted_fcn)
 
virtual void do_set_completer_quote_characters (const std::string &)
 
virtual void do_set_completer_word_break_characters (const std::string &)
 
virtual void do_set_completer_word_break_hook (completion_hook_fcn)
 
virtual void do_set_completion_append_character (char)
 
virtual void do_set_completion_function (completion_fcn)
 
virtual void do_set_dequoting_function (dequoting_fcn)
 
virtual void do_set_filename_quote_characters (const std::string &)
 
virtual void do_set_name (const std::string &)
 
virtual void do_set_quoting_function (quoting_fcn)
 
virtual void do_set_screen_size (int, int)
 
virtual void do_set_user_accept_line_function (user_accept_line_fcn)
 
virtual int do_terminal_cols (void)
 
virtual int do_terminal_rows (void)
 
virtual bool do_undo (void)
 
void error (int)
 
void error (const std::string &)
 
virtual std::string newline_chars (void)
 
int read_octal (const std::string &s)
 
virtual void restore_event_hook (void)
 
virtual void restore_pre_input_hook (void)
 
virtual void restore_startup_hook (void)
 
virtual void set_event_hook (event_hook_fcn)
 
virtual void set_pre_input_hook (pre_input_hook_fcn)
 
virtual void set_startup_hook (startup_hook_fcn)
 

Protected Attributes

int command_number
 
std::string initial_input
 
bool interrupted
 

Private Member Functions

 default_command_editor (const default_command_editor &)
 
default_command_editoroperator= (const default_command_editor &)
 

Private Attributes

FILE * input_stream
 
FILE * output_stream
 

Detailed Description

Definition at line 918 of file cmd-edit.cc.

Member Typedef Documentation

typedef int(* octave::command_editor::char_is_quoted_fcn)(const std::string &, int)
inherited

Definition at line 62 of file cmd-edit.h.

typedef std::string(* octave::command_editor::completion_fcn)(const std::string &, int)
inherited

Definition at line 54 of file cmd-edit.h.

typedef char*(* octave::command_editor::completion_hook_fcn)()
inherited

Definition at line 56 of file cmd-edit.h.

typedef std::string(* octave::command_editor::dequoting_fcn)(const std::string &, int)
inherited

Definition at line 60 of file cmd-edit.h.

typedef int(* octave::command_editor::event_hook_fcn)(void)
inherited

Definition at line 52 of file cmd-edit.h.

typedef int(* octave::command_editor::pre_input_hook_fcn)(void)
inherited

Definition at line 50 of file cmd-edit.h.

typedef std::string(* octave::command_editor::quoting_fcn)(const std::string &, int, char)
inherited

Definition at line 58 of file cmd-edit.h.

typedef int(* octave::command_editor::startup_hook_fcn)(void)
inherited

Definition at line 48 of file cmd-edit.h.

typedef void(* octave::command_editor::user_accept_line_fcn)(const std::string &)
inherited

Definition at line 64 of file cmd-edit.h.

Constructor & Destructor Documentation

octave::default_command_editor::default_command_editor ( void  )
inline

Definition at line 923 of file cmd-edit.cc.

octave::default_command_editor::~default_command_editor ( void  )
inline

Definition at line 926 of file cmd-edit.cc.

octave::default_command_editor::default_command_editor ( const default_command_editor )
private

Member Function Documentation

void octave::command_editor::accept_line ( void  )
staticinherited

Definition at line 1473 of file cmd-edit.cc.

Referenced by octave_cmd_exec::execute(), and octave_cmd_eval::execute().

void octave::command_editor::add_event_hook ( event_hook_fcn  f)
staticinherited
void octave::command_editor::add_pre_input_hook ( pre_input_hook_fcn  f)
staticinherited

Definition at line 1519 of file cmd-edit.cc.

void octave::command_editor::add_startup_hook ( startup_hook_fcn  f)
staticinherited

Definition at line 1493 of file cmd-edit.cc.

void octave::command_editor::blink_matching_paren ( bool  flag)
staticinherited

Definition at line 1293 of file cmd-edit.cc.

void octave::command_editor::clear_screen ( bool  skip_redisplay = false)
staticinherited

Definition at line 1237 of file cmd-edit.cc.

Referenced by main_window::clear_command_window_callback(), and Fclc().

void octave::command_editor::clear_undo_list ( void  )
staticinherited

Definition at line 1486 of file cmd-edit.cc.

int octave::command_editor::current_command_number ( void  )
staticinherited

Definition at line 1265 of file cmd-edit.cc.

std::string octave::command_editor::decode_prompt_string ( const std::string s)
staticinherited
void octave::default_command_editor::do_accept_line ( void  )
virtual

Implements octave::command_editor.

Definition at line 1053 of file cmd-edit.cc.

virtual void octave::command_editor::do_blink_matching_paren ( bool  )
inlineprotectedvirtualinherited

Definition at line 266 of file cmd-edit.h.

virtual void octave::command_editor::do_clear_screen ( bool  )
inlineprotectedvirtualinherited

Definition at line 254 of file cmd-edit.h.

virtual void octave::command_editor::do_clear_undo_list ( void  )
inlineprotectedvirtualinherited

Definition at line 327 of file cmd-edit.h.

std::string octave::command_editor::do_decode_prompt_string ( const std::string s)
protectedvirtualinherited
virtual bool octave::command_editor::do_erase_empty_line ( bool  )
inlineprotectedvirtualinherited

Definition at line 268 of file cmd-edit.h.

virtual bool octave::command_editor::do_filename_completion_desired ( bool  )
inlineprotectedvirtualinherited

Definition at line 345 of file cmd-edit.h.

virtual bool octave::command_editor::do_filename_quoting_desired ( bool  )
inlineprotectedvirtualinherited

Definition at line 347 of file cmd-edit.h.

string_vector octave::default_command_editor::do_generate_filename_completions ( const std::string text)
virtual

Implements octave::command_editor.

Definition at line 1003 of file cmd-edit.cc.

virtual char_is_quoted_fcn octave::command_editor::do_get_char_is_quoted_function ( void  ) const
inlineprotectedvirtualinherited

Definition at line 300 of file cmd-edit.h.

virtual completion_fcn octave::command_editor::do_get_completion_function ( void  ) const
inlineprotectedvirtualinherited

Definition at line 294 of file cmd-edit.h.

std::string octave::default_command_editor::do_get_current_line ( void  ) const
virtual

Implements octave::command_editor.

Definition at line 1016 of file cmd-edit.cc.

virtual dequoting_fcn octave::command_editor::do_get_dequoting_function ( void  ) const
inlineprotectedvirtualinherited

Definition at line 298 of file cmd-edit.h.

FILE * octave::default_command_editor::do_get_input_stream ( void  )
virtual

Implements octave::command_editor.

Definition at line 985 of file cmd-edit.cc.

std::string octave::default_command_editor::do_get_line_buffer ( void  ) const
virtual

Implements octave::command_editor.

Definition at line 1010 of file cmd-edit.cc.

FILE * octave::default_command_editor::do_get_output_stream ( void  )
virtual

Implements octave::command_editor.

Definition at line 997 of file cmd-edit.cc.

char octave::default_command_editor::do_get_prev_char ( int  ) const
virtual

Implements octave::command_editor.

Definition at line 1023 of file cmd-edit.cc.

virtual quoting_fcn octave::command_editor::do_get_quoting_function ( void  ) const
inlineprotectedvirtualinherited

Definition at line 296 of file cmd-edit.h.

virtual user_accept_line_fcn octave::command_editor::do_get_user_accept_line_function ( void  ) const
inlineprotectedvirtualinherited

Definition at line 303 of file cmd-edit.h.

int octave::command_editor::do_insert_initial_input ( void  )
protectedinherited

Definition at line 1893 of file cmd-edit.cc.

References input, and string.

void octave::default_command_editor::do_insert_text ( const std::string text)
virtual

Implements octave::command_editor.

Definition at line 1041 of file cmd-edit.cc.

virtual void octave::command_editor::do_interrupt ( bool  )
inlineprotectedvirtualinherited

Definition at line 351 of file cmd-edit.h.

void octave::default_command_editor::do_kill_full_line ( void  )
virtual

Implements octave::command_editor.

Definition at line 1035 of file cmd-edit.cc.

void octave::default_command_editor::do_newline ( void  )
virtual

Implements octave::command_editor.

Definition at line 1047 of file cmd-edit.cc.

virtual bool octave::command_editor::do_prefer_env_winsize ( bool  )
inlineprotectedvirtualinherited

Definition at line 349 of file cmd-edit.h.

virtual void octave::command_editor::do_re_read_init_file ( void  )
inlineprotectedvirtualinherited

Definition at line 343 of file cmd-edit.h.

virtual void octave::command_editor::do_read_init_file ( const std::string )
inlineprotectedvirtualinherited

Definition at line 341 of file cmd-edit.h.

std::string octave::command_editor::do_readline ( const std::string prompt)
inlineprotectedinherited

Definition at line 231 of file cmd-edit.h.

std::string octave::default_command_editor::do_readline ( const std::string prompt,
bool eof 
)
virtual

Implements octave::command_editor.

Definition at line 970 of file cmd-edit.cc.

References fflush, fputs(), and octave_fgetl().

virtual void octave::command_editor::do_redisplay ( void  )
inlineprotectedvirtualinherited

Definition at line 248 of file cmd-edit.h.

void octave::default_command_editor::do_replace_line ( const std::string text,
bool  clear_undo 
)
virtual

Implements octave::command_editor.

Definition at line 1029 of file cmd-edit.cc.

virtual void octave::command_editor::do_resize_terminal ( void  )
inlineprotectedvirtualinherited

Definition at line 256 of file cmd-edit.h.

virtual void octave::command_editor::do_restore_terminal_state ( void  )
inlineprotectedvirtualinherited

Definition at line 264 of file cmd-edit.h.

virtual void octave::command_editor::do_set_basic_quote_characters ( const std::string )
inlineprotectedvirtualinherited

Definition at line 276 of file cmd-edit.h.

virtual void octave::command_editor::do_set_basic_word_break_characters ( const std::string )
inlineprotectedvirtualinherited

Definition at line 270 of file cmd-edit.h.

virtual void octave::command_editor::do_set_char_is_quoted_function ( char_is_quoted_fcn  )
inlineprotectedvirtualinherited

Definition at line 290 of file cmd-edit.h.

virtual void octave::command_editor::do_set_completer_quote_characters ( const std::string )
inlineprotectedvirtualinherited

Definition at line 280 of file cmd-edit.h.

virtual void octave::command_editor::do_set_completer_word_break_characters ( const std::string )
inlineprotectedvirtualinherited

Definition at line 272 of file cmd-edit.h.

virtual void octave::command_editor::do_set_completer_word_break_hook ( completion_hook_fcn  )
inlineprotectedvirtualinherited

Definition at line 274 of file cmd-edit.h.

virtual void octave::command_editor::do_set_completion_append_character ( char  )
inlineprotectedvirtualinherited

Definition at line 282 of file cmd-edit.h.

virtual void octave::command_editor::do_set_completion_function ( completion_fcn  )
inlineprotectedvirtualinherited

Definition at line 284 of file cmd-edit.h.

virtual void octave::command_editor::do_set_dequoting_function ( dequoting_fcn  )
inlineprotectedvirtualinherited

Definition at line 288 of file cmd-edit.h.

virtual void octave::command_editor::do_set_filename_quote_characters ( const std::string )
inlineprotectedvirtualinherited

Definition at line 278 of file cmd-edit.h.

void octave::default_command_editor::do_set_input_stream ( FILE *  f)
virtual

Implements octave::command_editor.

Definition at line 979 of file cmd-edit.cc.

References f.

virtual void octave::command_editor::do_set_name ( const std::string )
inlineprotectedvirtualinherited

Definition at line 229 of file cmd-edit.h.

void octave::default_command_editor::do_set_output_stream ( FILE *  f)
virtual

Implements octave::command_editor.

Definition at line 991 of file cmd-edit.cc.

References f.

virtual void octave::command_editor::do_set_quoting_function ( quoting_fcn  )
inlineprotectedvirtualinherited

Definition at line 286 of file cmd-edit.h.

virtual void octave::command_editor::do_set_screen_size ( int  ,
int   
)
inlineprotectedvirtualinherited

Definition at line 258 of file cmd-edit.h.

virtual void octave::command_editor::do_set_user_accept_line_function ( user_accept_line_fcn  )
inlineprotectedvirtualinherited

Definition at line 292 of file cmd-edit.h.

virtual int octave::command_editor::do_terminal_cols ( void  )
inlineprotectedvirtualinherited

Definition at line 252 of file cmd-edit.h.

virtual int octave::command_editor::do_terminal_rows ( void  )
inlineprotectedvirtualinherited

Definition at line 250 of file cmd-edit.h.

virtual bool octave::command_editor::do_undo ( void  )
inlineprotectedvirtualinherited

Definition at line 325 of file cmd-edit.h.

bool octave::command_editor::erase_empty_line ( bool  flag)
staticinherited

Definition at line 1300 of file cmd-edit.cc.

Referenced by get_debug_input().

void octave::command_editor::error ( int  err_num)
protectedinherited

Definition at line 1933 of file cmd-edit.cc.

void octave::command_editor::error ( const std::string s)
protectedinherited

Definition at line 1939 of file cmd-edit.cc.

bool octave::command_editor::filename_completion_desired ( bool  arg)
staticinherited

Definition at line 1599 of file cmd-edit.cc.

bool octave::command_editor::filename_quoting_desired ( bool  arg)
staticinherited

Definition at line 1606 of file cmd-edit.cc.

void octave::command_editor::force_default_editor ( void  )
staticinherited

Definition at line 1089 of file cmd-edit.cc.

string_vector octave::command_editor::generate_filename_completions ( const std::string text)
staticinherited

Definition at line 1418 of file cmd-edit.cc.

Referenced by generate_completion().

command_editor::char_is_quoted_fcn octave::command_editor::get_char_is_quoted_function ( void  )
staticinherited

Definition at line 1404 of file cmd-edit.cc.

command_editor::completion_fcn octave::command_editor::get_completion_function ( void  )
staticinherited

Definition at line 1383 of file cmd-edit.cc.

std::string octave::command_editor::get_current_line ( void  )
staticinherited

Definition at line 1431 of file cmd-edit.cc.

Referenced by octave_cmd_exec::execute(), and octave_cmd_eval::execute().

command_editor::dequoting_fcn octave::command_editor::get_dequoting_function ( void  )
staticinherited

Definition at line 1397 of file cmd-edit.cc.

FILE * octave::command_editor::get_input_stream ( void  )
staticinherited

Definition at line 1195 of file cmd-edit.cc.

Referenced by get_input_from_stdin(), and parse_fcn_file().

std::string octave::command_editor::get_line_buffer ( void  )
staticinherited

Definition at line 1425 of file cmd-edit.cc.

Referenced by find_indexed_expression(), and is_completing_dirfns().

FILE * octave::command_editor::get_output_stream ( void  )
staticinherited

Definition at line 1209 of file cmd-edit.cc.

char octave::command_editor::get_prev_char ( int  offset)
staticinherited

Definition at line 1439 of file cmd-edit.cc.

Referenced by generate_completion(), and generate_possible_completions().

command_editor::quoting_fcn octave::command_editor::get_quoting_function ( void  )
staticinherited

Definition at line 1390 of file cmd-edit.cc.

command_editor::user_accept_line_fcn octave::command_editor::get_user_accept_line_function ( void  )
staticinherited

Definition at line 1411 of file cmd-edit.cc.

void octave::command_editor::increment_current_command_number ( void  )
staticinherited

Definition at line 1279 of file cmd-edit.cc.

int octave::command_editor::insert_initial_input ( void  )
staticinherited

Definition at line 1103 of file cmd-edit.cc.

void octave::command_editor::insert_text ( const std::string text)
staticinherited

Definition at line 1459 of file cmd-edit.cc.

bool octave::command_editor::interrupt ( bool  arg = true)
staticinherited

Definition at line 1620 of file cmd-edit.cc.

References arg, and retval.

Referenced by octave_cmd_debug::execute(), and get_debug_input().

void octave::command_editor::kill_full_line ( void  )
staticinherited

Definition at line 1452 of file cmd-edit.cc.

Referenced by main_window::clear_command_window_callback().

void octave::command_editor::newline ( void  )
staticinherited

Definition at line 1466 of file cmd-edit.cc.

virtual std::string octave::command_editor::newline_chars ( void  )
inlineprotectedvirtualinherited

Definition at line 262 of file cmd-edit.h.

default_command_editor& octave::default_command_editor::operator= ( const default_command_editor )
private
bool octave::command_editor::prefer_env_winsize ( bool  arg)
staticinherited

Definition at line 1613 of file cmd-edit.cc.

void octave::command_editor::re_read_init_file ( void  )
staticinherited

Definition at line 1592 of file cmd-edit.cc.

void octave::command_editor::read_init_file ( const std::string file = "")
staticinherited

Definition at line 1581 of file cmd-edit.cc.

References string, and octave::sys::file_ops::tilde_expand().

int octave::command_editor::read_octal ( const std::string s)
protectedinherited

Definition at line 1911 of file cmd-edit.cc.

References result.

std::string octave::command_editor::readline ( const std::string prompt)
staticinherited

Definition at line 1164 of file cmd-edit.cc.

Referenced by gnu_readline().

std::string octave::command_editor::readline ( const std::string prompt,
bool eof 
)
staticinherited

Definition at line 1172 of file cmd-edit.cc.

References retval, and string.

void octave::command_editor::redisplay ( void  )
staticinherited
void octave::command_editor::remove_event_hook ( event_hook_fcn  f)
staticinherited
void octave::command_editor::remove_pre_input_hook ( pre_input_hook_fcn  f)
staticinherited

Definition at line 1530 of file cmd-edit.cc.

void octave::command_editor::remove_startup_hook ( startup_hook_fcn  f)
staticinherited

Definition at line 1504 of file cmd-edit.cc.

void octave::command_editor::replace_line ( const std::string text,
bool  clear_undo = true 
)
staticinherited

Definition at line 1445 of file cmd-edit.cc.

Referenced by octave_cmd_exec::execute(), and octave_cmd_eval::execute().

void octave::command_editor::reset_current_command_number ( int  n)
staticinherited

Definition at line 1272 of file cmd-edit.cc.

void octave::command_editor::resize_terminal ( void  )
staticinherited

Definition at line 1244 of file cmd-edit.cc.

Referenced by main_window::resize_command_window_callback().

virtual void octave::command_editor::restore_event_hook ( void  )
inlineprotectedvirtualinherited

Definition at line 339 of file cmd-edit.h.

virtual void octave::command_editor::restore_pre_input_hook ( void  )
inlineprotectedvirtualinherited

Definition at line 335 of file cmd-edit.h.

virtual void octave::command_editor::restore_startup_hook ( void  )
inlineprotectedvirtualinherited

Definition at line 331 of file cmd-edit.h.

void octave::command_editor::restore_terminal_state ( void  )
staticinherited

Definition at line 1286 of file cmd-edit.cc.

void octave::command_editor::run_event_hooks ( void  )
staticinherited

Definition at line 1575 of file cmd-edit.cc.

Referenced by while().

void octave::command_editor::set_basic_quote_characters ( const std::string s)
staticinherited

Definition at line 1320 of file cmd-edit.cc.

Referenced by initialize_command_input().

void octave::command_editor::set_basic_word_break_characters ( const std::string s)
staticinherited

Definition at line 1306 of file cmd-edit.cc.

Referenced by initialize_command_input().

void octave::command_editor::set_char_is_quoted_function ( char_is_quoted_fcn  f)
staticinherited

Definition at line 1369 of file cmd-edit.cc.

void octave::command_editor::set_completer_quote_characters ( const std::string s)
staticinherited

Definition at line 1334 of file cmd-edit.cc.

Referenced by initialize_command_input().

void octave::command_editor::set_completer_word_break_characters ( const std::string s)
staticinherited

Definition at line 1313 of file cmd-edit.cc.

Referenced by initialize_command_input().

void octave::command_editor::set_completion_append_character ( char  c)
staticinherited

Definition at line 1341 of file cmd-edit.cc.

Referenced by generate_completion().

void octave::command_editor::set_completion_function ( completion_fcn  f)
staticinherited

Definition at line 1348 of file cmd-edit.cc.

Referenced by initialize_command_input().

void octave::command_editor::set_dequoting_function ( dequoting_fcn  f)
staticinherited

Definition at line 1362 of file cmd-edit.cc.

virtual void octave::command_editor::set_event_hook ( event_hook_fcn  )
inlineprotectedvirtualinherited

Definition at line 337 of file cmd-edit.h.

void octave::command_editor::set_filename_quote_characters ( const std::string s)
staticinherited

Definition at line 1327 of file cmd-edit.cc.

Referenced by initialize_command_input().

void octave::command_editor::set_initial_input ( const std::string text)
staticinherited

Definition at line 1096 of file cmd-edit.cc.

References text.

Referenced by octave_cmd_exec::execute(), and octave_cmd_eval::execute().

void octave::command_editor::set_input_stream ( FILE *  f)
staticinherited

Definition at line 1188 of file cmd-edit.cc.

Referenced by get_input_from_stdin(), and parse_fcn_file().

void octave::command_editor::set_name ( const std::string n)
staticinherited

Definition at line 1157 of file cmd-edit.cc.

Referenced by initialize_command_input().

void octave::command_editor::set_output_stream ( FILE *  f)
staticinherited

Definition at line 1202 of file cmd-edit.cc.

virtual void octave::command_editor::set_pre_input_hook ( pre_input_hook_fcn  )
inlineprotectedvirtualinherited

Definition at line 333 of file cmd-edit.h.

void octave::command_editor::set_quoting_function ( quoting_fcn  f)
staticinherited

Definition at line 1355 of file cmd-edit.cc.

Referenced by initialize_command_input().

void octave::command_editor::set_screen_size ( int  ht,
int  wd 
)
staticinherited

Definition at line 1251 of file cmd-edit.cc.

Referenced by main_window::set_screen_size_callback().

virtual void octave::command_editor::set_startup_hook ( startup_hook_fcn  )
inlineprotectedvirtualinherited

Definition at line 329 of file cmd-edit.h.

void octave::command_editor::set_user_accept_line_function ( user_accept_line_fcn  f)
staticinherited

Definition at line 1376 of file cmd-edit.cc.

int octave::command_editor::terminal_cols ( void  )
staticinherited
int octave::command_editor::terminal_rows ( void  )
staticinherited

Definition at line 1223 of file cmd-edit.cc.

Referenced by more_than_a_screenful().

bool octave::command_editor::undo ( void  )
staticinherited

Definition at line 1480 of file cmd-edit.cc.

Referenced by main_window::command_window_undo_callback().

Member Data Documentation

int octave::command_editor::command_number
protectedinherited

Definition at line 362 of file cmd-edit.h.

std::string octave::command_editor::initial_input
protectedinherited

Definition at line 366 of file cmd-edit.h.

FILE* octave::default_command_editor::input_stream
private

Definition at line 958 of file cmd-edit.cc.

bool octave::command_editor::interrupted
protectedinherited

Definition at line 364 of file cmd-edit.h.

FILE* octave::default_command_editor::output_stream
private

Definition at line 960 of file cmd-edit.cc.


The documentation for this class was generated from the following file: