GNU Octave  4.4.1
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
oct-rl-edit.h
Go to the documentation of this file.
1 /*
2 
3 Copyright (C) 2000-2018 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
9 the Free Software Foundation, either version 3 of the License, or
10 (at your option) any later version.
11 
12 Octave is distributed in the hope that it will be useful, but
13 WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License 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 <https://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 #include "octave-config.h"
27 
28 #if defined (__cplusplus)
29 # include <cstdio>
30 #else
31 # include <stdio.h>
32 #endif
33 
34 typedef int (*rl_startup_hook_fcn_ptr) (void);
35 
36 typedef int (*rl_pre_input_hook_fcn_ptr) (void);
37 
38 typedef int (*rl_event_hook_fcn_ptr) (void);
39 
40 typedef int (*rl_fcn_ptr) (int, int);
41 
42 typedef char ** (*rl_attempted_completion_fcn_ptr) (const char *, int, int);
43 
44 typedef char * (*rl_completer_fcn_ptr) (const char *, int);
45 
46 typedef char * (*rl_completion_hook_fcn_ptr) (void);
47 
48 typedef char * (*rl_quoting_fcn_ptr) (char *, int, char *);
49 
50 typedef char * (*rl_dequoting_fcn_ptr) (char *, int);
51 
52 typedef int (*rl_char_is_quoted_fcn_ptr) (char *, int);
53 
54 typedef int (*rl_command_fcn_ptr) (int, int);
55 
56 #if defined (__cplusplus)
57 extern "C"
58 {
59 #endif
60 
61 extern void octave_rl_redisplay (void);
62 
63 extern int octave_rl_screen_height (void);
64 
65 extern int octave_rl_screen_width (void);
66 
67 extern void octave_rl_enable_paren_matching (int);
68 
69 extern int octave_rl_erase_empty_line (int);
70 
71 extern void octave_rl_clear_screen (int skip_redisplay);
72 
73 extern void octave_rl_resize_terminal (void);
74 
75 extern void octave_rl_resize_terminal (void);
76 
77 extern void octave_rl_set_screen_size (int ht, int wd);
78 
79 extern void octave_rl_restore_terminal_state (void);
80 
81 extern char * octave_rl_copy_line (void);
82 
83 extern void octave_rl_replace_line (const char *s, int clear_undo);
84 
85 extern void octave_rl_kill_full_line (void);
86 
87 extern void octave_rl_insert_text (const char *);
88 
89 extern int octave_rl_newline (int, int);
90 
91 extern const char * octave_rl_line_buffer (void);
92 
93 extern int octave_rl_point (void);
94 
95 extern int octave_rl_do_undo (void);
96 
97 extern void octave_rl_clear_undo_list (void);
98 
99 extern void octave_rl_set_name (const char *);
100 
101 extern char * octave_rl_readline (const char *);
102 
103 extern void octave_rl_set_input_stream (FILE *);
104 
105 extern FILE * octave_rl_get_input_stream (void);
106 
107 extern void octave_rl_set_output_stream (FILE *);
108 
109 extern FILE * octave_rl_get_output_stream (void);
110 
111 extern void octave_rl_read_init_file (const char *);
112 
113 extern void octave_rl_re_read_init_file (void);
114 
116 
117 extern int octave_rl_filename_quoting_desired (int);
118 
119 extern int octave_rl_prefer_env_winsize (int);
120 
121 extern void octave_rl_done (int);
122 
123 extern char * octave_rl_filename_completion_function (const char *, int);
124 
125 extern void octave_rl_set_basic_word_break_characters (const char *);
126 
127 extern void octave_rl_set_completer_word_break_characters (const char *);
128 
130 
132 
133 extern void octave_rl_set_basic_quote_characters (const char *);
134 
135 extern void octave_rl_set_filename_quote_characters (const char *);
136 
137 extern void octave_rl_set_completer_quote_characters (const char *);
138 
140 
141 extern void
143 
144 extern void
146 
147 extern void
149 
151 
153 
155 
157 
159 
161 
163 
164 extern char **
166 
167 extern char octave_rl_prompt_start_ignore (void);
168 
169 extern char octave_rl_prompt_end_ignore (void);
170 
171 extern void octave_rl_add_defun (const char *, rl_fcn_ptr, int);
172 
173 extern void octave_rl_set_terminal_name (const char *);
174 
175 extern void octave_rl_initialize (void);
176 
177 extern int octave_rl_history_search_forward (int, int);
178 
179 extern int octave_rl_history_search_backward (int, int);
180 
181 extern int octave_rl_ctrl (char);
182 
183 extern int octave_rl_meta (char);
184 
185 extern void octave_rl_recover_from_interrupt (void);
186 
187 #if defined (__cplusplus)
188 }
189 #endif
190 
191 #endif
int octave_rl_do_undo(void)
int octave_rl_newline(int, int)
void octave_rl_set_dequoting_function(rl_dequoting_fcn_ptr)
char *(* rl_dequoting_fcn_ptr)(char *, int)
Definition: oct-rl-edit.h:50
char *(* rl_completion_hook_fcn_ptr)(void)
Definition: oct-rl-edit.h:46
char * octave_rl_readline(const char *)
char *(* rl_quoting_fcn_ptr)(char *, int, char *)
Definition: oct-rl-edit.h:48
void octave_rl_set_terminal_name(const char *)
void octave_rl_set_completion_word_break_hook(rl_completion_hook_fcn_ptr)
int(* rl_event_hook_fcn_ptr)(void)
Definition: oct-rl-edit.h:38
void octave_rl_redisplay(void)
int octave_rl_filename_quoting_desired(int)
F77_RET_T const F77_REAL const F77_REAL F77_REAL &F77_RET_T const F77_DBLE const F77_DBLE F77_DBLE &F77_RET_T const F77_DBLE F77_DBLE &F77_RET_T const F77_REAL F77_REAL &F77_RET_T const F77_DBLE const F77_DBLE * f
int octave_rl_screen_width(void)
void octave_rl_set_event_hook(rl_event_hook_fcn_ptr f)
int octave_rl_ctrl(char)
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 *)
char * octave_rl_get_completer_word_break_characters(void)
s
Definition: file-io.cc:2729
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 *)
void octave_rl_resize_terminal(void)
char *(* rl_completer_fcn_ptr)(const char *, int)
Definition: oct-rl-edit.h:44
char octave_rl_prompt_start_ignore(void)
int octave_rl_point(void)
void octave_rl_restore_terminal_state(void)
char **(* rl_attempted_completion_fcn_ptr)(const char *, int, int)
Definition: oct-rl-edit.h:42
int octave_rl_filename_completion_desired(int)
int(* rl_pre_input_hook_fcn_ptr)(void)
Definition: oct-rl-edit.h:36
void octave_rl_clear_screen(int skip_redisplay)
int octave_rl_history_search_forward(int, int)
void octave_rl_read_init_file(const char *)
void octave_rl_recover_from_interrupt(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)
void octave_rl_set_pre_input_hook(rl_startup_hook_fcn_ptr)
int(* rl_startup_hook_fcn_ptr)(void)
Definition: oct-rl-edit.h:34
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)
int(* rl_fcn_ptr)(int, int)
Definition: oct-rl-edit.h:40
void octave_rl_set_name(const char *)
void octave_rl_insert_text(const char *)
int(* rl_char_is_quoted_fcn_ptr)(char *, int)
Definition: oct-rl-edit.h:52
int octave_rl_prefer_env_winsize(int)
char * octave_rl_copy_line(void)
void octave_rl_set_startup_hook(rl_startup_hook_fcn_ptr)
rl_event_hook_fcn_ptr octave_rl_get_event_hook(void)
int octave_rl_meta(char)
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)
int(* rl_command_fcn_ptr)(int, int)
Definition: oct-rl-edit.h:54
const char * octave_rl_line_buffer(void)
FILE * octave_rl_get_input_stream(void)
int octave_rl_screen_height(void)
void octave_rl_add_defun(const char *, rl_fcn_ptr, int)
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 *)