GNU Octave  9.1.0
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-2024 The Octave Project Developers
4 //
5 // See the file COPYRIGHT.md in the top-level directory of this
6 // distribution or <https://octave.org/copyright/>.
7 //
8 // This file is part of Octave.
9 //
10 // Octave is free software: you can redistribute it and/or modify it
11 // under the terms of the GNU General Public License as published by
12 // the Free Software Foundation, either version 3 of the License, or
13 // (at your option) any later version.
14 //
15 // Octave is distributed in the hope that it will be useful, but
16 // WITHOUT ANY WARRANTY; without even the implied warranty of
17 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 // GNU General Public License for more details.
19 //
20 // You should have received a copy of the GNU General Public License
21 // along with Octave; see the file COPYING. If not, see
22 // <https://www.gnu.org/licenses/>.
23 //
24 ////////////////////////////////////////////////////////////////////////
25 
26 #if ! defined (octave_oct_rl_edit_h)
27 #define octave_oct_rl_edit_h 1
28 
29 #include "octave-config.h"
30 
31 #if defined (__cplusplus)
32 # include <cstdio>
33 #else
34 # include <stdio.h>
35 #endif
36 
37 typedef int (*rl_startup_hook_fcn_ptr) (void);
38 
39 typedef int (*rl_pre_input_hook_fcn_ptr) (void);
40 
41 typedef int (*rl_event_hook_fcn_ptr) (void);
42 
43 typedef int (*rl_fcn_ptr) (int, int);
44 
45 typedef char ** (*rl_attempted_completion_fcn_ptr) (const char *, int, int);
46 
47 typedef char * (*rl_completer_fcn_ptr) (const char *, int);
48 
49 typedef char * (*rl_completion_hook_fcn_ptr) (void);
50 
51 typedef char * (*rl_quoting_fcn_ptr) (char *, int, char *);
52 
53 typedef char * (*rl_dequoting_fcn_ptr) (char *, int);
54 
55 typedef int (*rl_char_is_quoted_fcn_ptr) (char *, int);
56 
57 typedef int (*rl_command_fcn_ptr) (int, int);
58 
59 #if defined (__cplusplus)
60 extern "C"
61 {
62 #endif
63 
64 extern void octave_rl_redisplay (void);
65 
66 extern int octave_rl_screen_height (void);
67 
68 extern int octave_rl_screen_width (void);
69 
71 
72 extern int octave_rl_erase_empty_line (int);
73 
74 extern void octave_rl_clear_screen (int skip_redisplay);
75 
76 extern void octave_rl_resize_terminal (void);
77 
78 extern void octave_rl_resize_terminal (void);
79 
80 extern void octave_rl_set_screen_size (int ht, int wd);
81 
83 
84 extern char * octave_rl_copy_line (void);
85 
86 extern void octave_rl_replace_line (const char *s, int clear_undo);
87 
88 extern void octave_rl_kill_full_line (void);
89 
90 extern void octave_rl_insert_text (const char *);
91 
92 extern int octave_rl_newline (int, int);
93 
94 extern const char * octave_rl_line_buffer (void);
95 
96 extern int octave_rl_point (void);
97 
98 extern int octave_rl_do_undo (void);
99 
100 extern void octave_rl_clear_undo_list (void);
101 
102 extern void octave_rl_set_name (const char *);
103 
104 extern char * octave_rl_readline (const char *);
105 
106 extern void octave_rl_set_input_stream (FILE *);
107 
108 extern FILE * octave_rl_get_input_stream (void);
109 
110 extern void octave_rl_set_output_stream (FILE *);
111 
112 extern FILE * octave_rl_get_output_stream (void);
113 
114 extern void octave_rl_read_init_file (const char *);
115 
116 extern void octave_rl_re_read_init_file (void);
117 
119 
121 
123 
124 extern void octave_rl_done (int);
125 
126 extern char * octave_rl_filename_completion_function (const char *, int);
127 
128 extern void octave_rl_set_basic_word_break_characters (const char *);
129 
131 
133 
135 
136 extern void octave_rl_set_basic_quote_characters (const char *);
137 
138 extern void octave_rl_set_filename_quote_characters (const char *);
139 
140 extern void octave_rl_set_completer_quote_characters (const char *);
141 
143 
144 extern void
146 
147 extern void
149 
150 extern void
152 
154 
156 
158 
160 
162 
164 
166 
167 extern char **
169 
170 extern char octave_rl_prompt_start_ignore (void);
171 
172 extern char octave_rl_prompt_end_ignore (void);
173 
174 extern void octave_rl_add_defun (const char *, rl_fcn_ptr, int);
175 
176 extern void octave_rl_set_terminal_name (const char *);
177 
178 extern void octave_rl_initialize (void);
179 
180 extern int octave_rl_history_search_forward (int, int);
181 
182 extern int octave_rl_history_search_backward (int, int);
183 
184 extern int octave_rl_ctrl (char);
185 
186 extern int octave_rl_meta (char);
187 
189 
190 #if defined (__cplusplus)
191 }
192 #endif
193 
194 #endif
F77_RET_T const F77_DBLE const F77_DBLE * f
const char * octave_rl_line_buffer(void)
int octave_rl_history_search_backward(int, int)
void octave_rl_set_startup_hook(rl_startup_hook_fcn_ptr)
void octave_rl_set_quoting_function(rl_quoting_fcn_ptr)
void octave_rl_re_read_init_file(void)
void octave_rl_set_completer_word_break_characters(const char *)
void octave_rl_set_pre_input_hook(rl_startup_hook_fcn_ptr)
char *(* rl_quoting_fcn_ptr)(char *, int, char *)
Definition: oct-rl-edit.h:51
void octave_rl_kill_full_line(void)
char *(* rl_completer_fcn_ptr)(const char *, int)
Definition: oct-rl-edit.h:47
char octave_rl_prompt_end_ignore(void)
char **(* rl_attempted_completion_fcn_ptr)(const char *, int, int)
Definition: oct-rl-edit.h:45
void octave_rl_clear_undo_list(void)
void octave_rl_resize_terminal(void)
int octave_rl_history_search_forward(int, int)
void octave_rl_read_init_file(const char *)
int(* rl_fcn_ptr)(int, int)
Definition: oct-rl-edit.h:43
void octave_rl_set_dequoting_function(rl_dequoting_fcn_ptr)
void octave_rl_set_basic_quote_characters(const char *)
void octave_rl_clear_screen(int skip_redisplay)
char *(* rl_dequoting_fcn_ptr)(char *, int)
Definition: oct-rl-edit.h:53
int octave_rl_screen_width(void)
char * octave_rl_filename_completion_function(const char *, int)
char octave_rl_prompt_start_ignore(void)
const char * octave_rl_get_completer_word_break_characters(void)
char * octave_rl_copy_line(void)
void octave_rl_set_terminal_name(const char *)
void octave_rl_restore_terminal_state(void)
char * octave_rl_readline(const char *)
void octave_rl_set_name(const char *)
char ** octave_rl_completion_matches(const char *, rl_completer_fcn_ptr)
int octave_rl_do_undo(void)
int(* rl_pre_input_hook_fcn_ptr)(void)
Definition: oct-rl-edit.h:39
int octave_rl_filename_completion_desired(int)
void octave_rl_set_output_stream(FILE *)
int octave_rl_ctrl(char)
FILE * octave_rl_get_input_stream(void)
void octave_rl_set_completion_word_break_hook(rl_completion_hook_fcn_ptr)
int(* rl_command_fcn_ptr)(int, int)
Definition: oct-rl-edit.h:57
void octave_rl_initialize(void)
void octave_rl_set_filename_quote_characters(const char *)
void octave_rl_enable_paren_matching(int)
void octave_rl_set_event_hook(rl_event_hook_fcn_ptr f)
int octave_rl_meta(char)
void octave_rl_set_completion_append_character(char)
int octave_rl_screen_height(void)
rl_startup_hook_fcn_ptr octave_rl_get_startup_hook(void)
void octave_rl_done(int)
void octave_rl_set_completion_function(rl_attempted_completion_fcn_ptr)
int(* rl_event_hook_fcn_ptr)(void)
Definition: oct-rl-edit.h:41
int octave_rl_point(void)
rl_event_hook_fcn_ptr octave_rl_get_event_hook(void)
rl_pre_input_hook_fcn_ptr octave_rl_get_pre_input_hook(void)
void octave_rl_insert_text(const char *)
int(* rl_char_is_quoted_fcn_ptr)(char *, int)
Definition: oct-rl-edit.h:55
int octave_rl_erase_empty_line(int)
FILE * octave_rl_get_output_stream(void)
int octave_rl_filename_quoting_desired(int)
int(* rl_startup_hook_fcn_ptr)(void)
Definition: oct-rl-edit.h:37
void octave_rl_recover_from_interrupt(void)
char *(* rl_completion_hook_fcn_ptr)(void)
Definition: oct-rl-edit.h:49
void octave_rl_add_defun(const char *, rl_fcn_ptr, int)
void octave_rl_set_completer_quote_characters(const char *)
void octave_rl_set_screen_size(int ht, int wd)
void octave_rl_replace_line(const char *s, int clear_undo)
void octave_rl_set_char_is_quoted_function(rl_char_is_quoted_fcn_ptr)
int octave_rl_newline(int, int)
void octave_rl_set_input_stream(FILE *)
int octave_rl_prefer_env_winsize(int)
void octave_rl_redisplay(void)
void octave_rl_set_basic_word_break_characters(const char *)