GNU Octave  3.8.0
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
oct-rl-edit.h
Go to the documentation of this file.
1 /*
2 
3 Copyright (C) 2000-2013 John W. Eaton
4 
5 This file is part of Octave.
6 
7 Octave is free software; you can redistribute it and/or modify it
8 under the terms of the GNU General Public License as published by the
9 Free Software Foundation; either version 3 of the License, or (at your
10 option) any later version.
11 
12 Octave is distributed in the hope that it will be useful, but WITHOUT
13 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
14 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
15 for more details.
16 
17 You should have received a copy of the GNU General Public License
18 along with Octave; see the file COPYING. If not, see
19 <http://www.gnu.org/licenses/>.
20 
21 */
22 
23 #if !defined (octave_oct_rl_edit_h)
24 #define octave_oct_rl_edit_h 1
25 
27 
29 
31 
32 typedef int (*rl_fcn_ptr) (int, int);
33 
34 typedef char ** (*rl_attempted_completion_fcn_ptr) (const char *, int, int);
35 
36 typedef char * (*rl_completer_fcn_ptr) (const char *, int);
37 
38 typedef char * (*rl_quoting_fcn_ptr) (char *, int, char *);
39 
40 typedef char * (*rl_dequoting_fcn_ptr) (char *, int);
41 
42 typedef int (*rl_char_is_quoted_fcn_ptr) (char *, int);
43 
44 typedef int (*rl_command_fcn_ptr) (int, int);
45 
46 #ifdef __cplusplus
47 extern "C"
48 {
49 #endif
50 
51 extern void octave_rl_redisplay (void);
52 
53 extern int octave_rl_screen_height (void);
54 
55 extern int octave_rl_screen_width (void);
56 
57 extern void octave_rl_enable_paren_matching (int);
58 
59 extern void octave_rl_init (void);
60 
61 extern void octave_rl_clear_screen (int skip_redisplay);
62 
63 extern void octave_rl_resize_terminal (void);
64 
65 extern void octave_rl_restore_terminal_state (void);
66 
67 extern char *octave_rl_copy_line (void);
68 
69 extern void octave_rl_replace_line (const char *s, int clear_undo);
70 
71 extern void octave_rl_insert_text (const char *);
72 
73 extern int octave_rl_newline (int, int);
74 
75 extern const char *octave_rl_line_buffer (void);
76 
77 extern int octave_rl_do_undo (void);
78 
79 extern void octave_rl_clear_undo_list (void);
80 
81 extern void octave_rl_set_name (const char *);
82 
83 extern char *octave_rl_readline (const char *);
84 
85 extern void octave_rl_set_input_stream (FILE *);
86 
87 extern FILE *octave_rl_get_input_stream (void);
88 
89 extern void octave_rl_set_output_stream (FILE *);
90 
91 extern FILE *octave_rl_get_output_stream (void);
92 
93 extern void octave_rl_read_init_file (const char *);
94 
95 extern void octave_rl_re_read_init_file (void);
96 
98 
99 extern int octave_rl_filename_quoting_desired (int);
100 
101 extern void octave_rl_done (int);
102 
103 extern char *octave_rl_filename_completion_function (const char *, int);
104 
105 extern void octave_rl_set_basic_word_break_characters (const char *);
106 
107 extern void octave_rl_set_completer_word_break_characters (const char *);
108 
109 extern void octave_rl_set_basic_quote_characters (const char *);
110 
111 extern void octave_rl_set_filename_quote_characters (const char *);
112 
113 extern void octave_rl_set_completer_quote_characters (const char *);
114 
116 
117 extern void
119 
120 extern void
122 
123 extern void
125 
127 
129 
131 
133 
135 
137 
139 
140 extern char **
142 
143 extern char octave_rl_prompt_start_ignore (void);
144 
145 extern char octave_rl_prompt_end_ignore (void);
146 
147 extern void octave_rl_add_defun (const char *, rl_fcn_ptr, char);
148 
149 extern void octave_rl_set_terminal_name (const char *);
150 
151 extern void octave_rl_initialize (void);
152 
153 extern int octave_rl_history_search_forward (int, int);
154 
155 extern int octave_rl_history_search_backward (int, int);
156 
157 extern char octave_rl_ctrl (char);
158 
159 extern char octave_rl_meta (char);
160 
161 #ifdef __cplusplus
162 }
163 #endif
164 
165 #endif