oct-rl-edit.h

Go to the documentation of this file.
00001 /*
00002 
00003 Copyright (C) 2000-2012 John W. Eaton
00004 
00005 This file is part of Octave.
00006 
00007 Octave is free software; you can redistribute it and/or modify it
00008 under the terms of the GNU General Public License as published by the
00009 Free Software Foundation; either version 3 of the License, or (at your
00010 option) any later version.
00011 
00012 Octave is distributed in the hope that it will be useful, but WITHOUT
00013 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
00014 FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
00015 for more details.
00016 
00017 You should have received a copy of the GNU General Public License
00018 along with Octave; see the file COPYING.  If not, see
00019 <http://www.gnu.org/licenses/>.
00020 
00021 */
00022 
00023 #if !defined (octave_rl_edit_h)
00024 #define octave_rl_edit_h 1
00025 
00026 typedef int (*rl_startup_hook_fcn_ptr) (void);
00027 
00028 typedef int (*rl_event_hook_fcn_ptr) (void);
00029 
00030 typedef int (*rl_fcn_ptr) (int, int);
00031 
00032 typedef char ** (*rl_attempted_completion_fcn_ptr) (const char *, int, int);
00033 
00034 typedef char * (*rl_completer_fcn_ptr) (const char *, int);
00035 
00036 typedef char * (*rl_quoting_fcn_ptr) (char *, int, char *);
00037 
00038 typedef char * (*rl_dequoting_fcn_ptr) (char *, int);
00039 
00040 typedef int (*rl_char_is_quoted_fcn_ptr) (char *, int);
00041 
00042 typedef int (*rl_command_fcn_ptr) (int, int);
00043 
00044 #ifdef __cplusplus
00045 extern "C"
00046 {
00047 #endif
00048 
00049   extern void octave_rl_redisplay (void);
00050 
00051 extern int octave_rl_screen_height (void);
00052 
00053 extern int octave_rl_screen_width (void);
00054 
00055 extern void octave_rl_enable_paren_matching (int);
00056 
00057 extern void octave_rl_init (void);
00058 
00059 extern void octave_rl_clear_screen (void);
00060 
00061 extern void octave_rl_resize_terminal (void);
00062 
00063 extern void octave_rl_restore_terminal_state (void);
00064 
00065 extern void octave_rl_insert_text (const char *);
00066 
00067 extern int octave_rl_newline (int, int);
00068 
00069 extern const char *octave_rl_line_buffer (void);
00070 
00071 extern void octave_rl_clear_undo_list (void);
00072 
00073 extern void octave_rl_set_name (const char *);
00074 
00075 extern char *octave_rl_readline (const char *);
00076 
00077 extern void octave_rl_set_input_stream (FILE *);
00078 
00079 extern FILE *octave_rl_get_input_stream (void);
00080 
00081 extern void octave_rl_set_output_stream (FILE *);
00082 
00083 extern FILE *octave_rl_get_output_stream (void);
00084 
00085 extern void octave_rl_read_init_file (const char *);
00086 
00087 extern void octave_rl_re_read_init_file (void);
00088 
00089 extern int octave_rl_filename_completion_desired (int);
00090 
00091 extern int octave_rl_filename_quoting_desired (int);
00092 
00093 extern char *octave_rl_filename_completion_function (const char *, int);
00094 
00095 extern void octave_rl_set_basic_word_break_characters (const char *);
00096 
00097 extern void octave_rl_set_completer_word_break_characters (const char *);
00098 
00099 extern void octave_rl_set_basic_quote_characters (const char *);
00100 
00101 extern void octave_rl_set_filename_quote_characters (const char *);
00102 
00103 extern void octave_rl_set_completer_quote_characters (const char *);
00104 
00105 extern void octave_rl_set_completion_append_character (char);
00106 
00107 extern void
00108 octave_rl_set_completion_function (rl_attempted_completion_fcn_ptr);
00109 
00110 extern void
00111 octave_rl_set_quoting_function (rl_quoting_fcn_ptr);
00112 
00113 extern void
00114 octave_rl_set_dequoting_function (rl_dequoting_fcn_ptr);
00115 
00116 extern void octave_rl_set_char_is_quoted_function (rl_char_is_quoted_fcn_ptr);
00117 
00118 extern void octave_rl_set_startup_hook (rl_startup_hook_fcn_ptr);
00119 
00120 extern rl_startup_hook_fcn_ptr octave_rl_get_startup_hook (void);
00121 
00122 extern void octave_rl_set_event_hook (rl_event_hook_fcn_ptr f);
00123 
00124 extern rl_event_hook_fcn_ptr octave_rl_get_event_hook (void);
00125 
00126 extern char **
00127 octave_rl_completion_matches (const char *, rl_completer_fcn_ptr);
00128 
00129 extern char octave_rl_prompt_start_ignore (void);
00130 
00131 extern char octave_rl_prompt_end_ignore (void);
00132 
00133 extern void octave_rl_add_defun (const char *, rl_fcn_ptr, char);
00134 
00135 extern void octave_rl_set_terminal_name (const char *);
00136 
00137 extern void octave_rl_initialize (void);
00138 
00139 extern int octave_rl_history_search_forward (int, int);
00140 
00141 extern int octave_rl_history_search_backward (int, int);
00142 
00143 extern char octave_rl_ctrl (char);
00144 
00145 extern char octave_rl_meta (char);
00146 
00147 #ifdef __cplusplus
00148 }
00149 #endif
00150 
00151 #endif
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines