GNU Octave  4.0.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-2015 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 
26 typedef int (*rl_startup_hook_fcn_ptr) (void);
27 
28 typedef int (*rl_pre_input_hook_fcn_ptr) (void);
29 
30 typedef int (*rl_event_hook_fcn_ptr) (void);
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 int octave_rl_erase_empty_line (int);
60 
61 extern void octave_rl_init (void);
62 
63 extern void octave_rl_clear_screen (int skip_redisplay);
64 
65 extern void octave_rl_resize_terminal (void);
66 
67 extern void octave_rl_resize_terminal (void);
68 
69 extern void octave_rl_set_screen_size (int ht, int wd);
70 
71 extern void octave_rl_restore_terminal_state (void);
72 
73 extern char *octave_rl_copy_line (void);
74 
75 extern void octave_rl_replace_line (const char *s, int clear_undo);
76 
77 extern void octave_rl_kill_full_line (void);
78 
79 extern void octave_rl_insert_text (const char *);
80 
81 extern int octave_rl_newline (int, int);
82 
83 extern const char *octave_rl_line_buffer (void);
84 
85 extern int octave_rl_do_undo (void);
86 
87 extern void octave_rl_clear_undo_list (void);
88 
89 extern void octave_rl_set_name (const char *);
90 
91 extern char *octave_rl_readline (const char *);
92 
93 extern void octave_rl_set_input_stream (FILE *);
94 
95 extern FILE *octave_rl_get_input_stream (void);
96 
97 extern void octave_rl_set_output_stream (FILE *);
98 
99 extern FILE *octave_rl_get_output_stream (void);
100 
101 extern void octave_rl_read_init_file (const char *);
102 
103 extern void octave_rl_re_read_init_file (void);
104 
106 
107 extern int octave_rl_filename_quoting_desired (int);
108 
109 extern int octave_rl_prefer_env_winsize (int);
110 
111 extern void octave_rl_done (int);
112 
113 extern char *octave_rl_filename_completion_function (const char *, int);
114 
115 extern void octave_rl_set_basic_word_break_characters (const char *);
116 
117 extern void octave_rl_set_completer_word_break_characters (const char *);
118 
119 extern void octave_rl_set_basic_quote_characters (const char *);
120 
121 extern void octave_rl_set_filename_quote_characters (const char *);
122 
123 extern void octave_rl_set_completer_quote_characters (const char *);
124 
126 
127 extern void
129 
130 extern void
132 
133 extern void
135 
137 
139 
141 
143 
145 
147 
149 
150 extern char **
152 
153 extern char octave_rl_prompt_start_ignore (void);
154 
155 extern char octave_rl_prompt_end_ignore (void);
156 
157 extern void octave_rl_add_defun (const char *, rl_fcn_ptr, char);
158 
159 extern void octave_rl_set_terminal_name (const char *);
160 
161 extern void octave_rl_initialize (void);
162 
163 extern int octave_rl_history_search_forward (int, int);
164 
165 extern int octave_rl_history_search_backward (int, int);
166 
167 extern char octave_rl_ctrl (char);
168 
169 extern char octave_rl_meta (char);
170 
171 #ifdef __cplusplus
172 }
173 #endif
174 
175 #endif
char octave_rl_meta(char)
int octave_rl_do_undo(void)
int(* rl_fcn_ptr)(int, int)
Definition: oct-rl-edit.h:32
int octave_rl_newline(int, int)
void octave_rl_set_dequoting_function(rl_dequoting_fcn_ptr)
char octave_rl_ctrl(char)
char * octave_rl_readline(const char *)
void octave_rl_set_terminal_name(const char *)
void octave_rl_redisplay(void)
int octave_rl_filename_quoting_desired(int)
int octave_rl_screen_width(void)
int(* rl_event_hook_fcn_ptr)(void)
Definition: oct-rl-edit.h:30
void octave_rl_set_event_hook(rl_event_hook_fcn_ptr f)
void octave_rl_clear_undo_list(void)
void octave_rl_set_completion_function(rl_attempted_completion_fcn_ptr)
int octave_rl_erase_empty_line(int)
void octave_rl_set_basic_word_break_characters(const char *)
void octave_rl_set_basic_quote_characters(const char *)
char octave_rl_prompt_end_ignore(void)
void octave_rl_set_completer_quote_characters(const char *)
char *(* rl_quoting_fcn_ptr)(char *, int, char *)
Definition: oct-rl-edit.h:38
void octave_rl_resize_terminal(void)
char *(* rl_completer_fcn_ptr)(const char *, int)
Definition: oct-rl-edit.h:36
char octave_rl_prompt_start_ignore(void)
void octave_rl_restore_terminal_state(void)
int octave_rl_filename_completion_desired(int)
int(* rl_pre_input_hook_fcn_ptr)(void)
Definition: oct-rl-edit.h:28
void octave_rl_clear_screen(int skip_redisplay)
int octave_rl_history_search_forward(int, int)
void octave_rl_add_defun(const char *, rl_fcn_ptr, char)
F77_RET_T const double const double * f
void octave_rl_read_init_file(const char *)
char *(* rl_dequoting_fcn_ptr)(char *, int)
Definition: oct-rl-edit.h:40
void octave_rl_init(void)
void octave_rl_set_completer_word_break_characters(const char *)
void octave_rl_done(int)
void octave_rl_set_filename_quote_characters(const char *)
void octave_rl_initialize(void)
int(* rl_startup_hook_fcn_ptr)(void)
Definition: oct-rl-edit.h:26
void octave_rl_set_pre_input_hook(rl_startup_hook_fcn_ptr)
void octave_rl_enable_paren_matching(int)
char ** octave_rl_completion_matches(const char *, rl_completer_fcn_ptr)
void octave_rl_set_completion_append_character(char)
void octave_rl_set_screen_size(int ht, int wd)
char * octave_rl_filename_completion_function(const char *, int)
void octave_rl_set_name(const char *)
int(* rl_command_fcn_ptr)(int, int)
Definition: oct-rl-edit.h:44
void octave_rl_insert_text(const char *)
char **(* rl_attempted_completion_fcn_ptr)(const char *, int, int)
Definition: oct-rl-edit.h:34
int octave_rl_prefer_env_winsize(int)
char * octave_rl_copy_line(void)
void octave_rl_set_startup_hook(rl_startup_hook_fcn_ptr)
int(* rl_char_is_quoted_fcn_ptr)(char *, int)
Definition: oct-rl-edit.h:42
rl_event_hook_fcn_ptr octave_rl_get_event_hook(void)
void octave_rl_kill_full_line(void)
rl_pre_input_hook_fcn_ptr octave_rl_get_pre_input_hook(void)
void octave_rl_re_read_init_file(void)
const char * octave_rl_line_buffer(void)
FILE * octave_rl_get_input_stream(void)
int octave_rl_screen_height(void)
void octave_rl_replace_line(const char *s, int clear_undo)
FILE * octave_rl_get_output_stream(void)
rl_startup_hook_fcn_ptr octave_rl_get_startup_hook(void)
void octave_rl_set_char_is_quoted_function(rl_char_is_quoted_fcn_ptr)
void octave_rl_set_quoting_function(rl_quoting_fcn_ptr)
int octave_rl_history_search_backward(int, int)
void octave_rl_set_input_stream(FILE *)
void octave_rl_set_output_stream(FILE *)