GNU Octave  4.2.1
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-2017 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 #include "octave-config.h"
27 
28 typedef int (*rl_startup_hook_fcn_ptr) (void);
29 
30 typedef int (*rl_pre_input_hook_fcn_ptr) (void);
31 
32 typedef int (*rl_event_hook_fcn_ptr) (void);
33 
34 typedef int (*rl_fcn_ptr) (int, int);
35 
36 typedef char ** (*rl_attempted_completion_fcn_ptr) (const char *, int, int);
37 
38 typedef char * (*rl_completer_fcn_ptr) (const char *, int);
39 
40 typedef char * (*rl_completion_hook_fcn_ptr) (void);
41 
42 typedef char * (*rl_quoting_fcn_ptr) (char *, int, char *);
43 
44 typedef char * (*rl_dequoting_fcn_ptr) (char *, int);
45 
46 typedef int (*rl_char_is_quoted_fcn_ptr) (char *, int);
47 
48 typedef int (*rl_command_fcn_ptr) (int, int);
49 
50 #if defined (__cplusplus)
51 extern "C"
52 {
53 #endif
54 
55 extern void octave_rl_redisplay (void);
56 
57 extern int octave_rl_screen_height (void);
58 
59 extern int octave_rl_screen_width (void);
60 
61 extern void octave_rl_enable_paren_matching (int);
62 
63 extern int octave_rl_erase_empty_line (int);
64 
65 extern void octave_rl_init (void);
66 
67 extern void octave_rl_clear_screen (int skip_redisplay);
68 
69 extern void octave_rl_resize_terminal (void);
70 
71 extern void octave_rl_resize_terminal (void);
72 
73 extern void octave_rl_set_screen_size (int ht, int wd);
74 
75 extern void octave_rl_restore_terminal_state (void);
76 
77 extern char *octave_rl_copy_line (void);
78 
79 extern void octave_rl_replace_line (const char *s, int clear_undo);
80 
81 extern void octave_rl_kill_full_line (void);
82 
83 extern void octave_rl_insert_text (const char *);
84 
85 extern int octave_rl_newline (int, int);
86 
87 extern const char *octave_rl_line_buffer (void);
88 
89 extern int octave_rl_point (void);
90 
91 extern int octave_rl_do_undo (void);
92 
93 extern void octave_rl_clear_undo_list (void);
94 
95 extern void octave_rl_set_name (const char *);
96 
97 extern char *octave_rl_readline (const char *);
98 
99 extern void octave_rl_set_input_stream (FILE *);
100 
101 extern FILE *octave_rl_get_input_stream (void);
102 
103 extern void octave_rl_set_output_stream (FILE *);
104 
105 extern FILE *octave_rl_get_output_stream (void);
106 
107 extern void octave_rl_read_init_file (const char *);
108 
109 extern void octave_rl_re_read_init_file (void);
110 
112 
113 extern int octave_rl_filename_quoting_desired (int);
114 
115 extern int octave_rl_prefer_env_winsize (int);
116 
117 extern void octave_rl_done (int);
118 
119 extern char *octave_rl_filename_completion_function (const char *, int);
120 
121 extern void octave_rl_set_basic_word_break_characters (const char *);
122 
123 extern void octave_rl_set_completer_word_break_characters (const char *);
124 
126 
128 
129 extern void octave_rl_set_basic_quote_characters (const char *);
130 
131 extern void octave_rl_set_filename_quote_characters (const char *);
132 
133 extern void octave_rl_set_completer_quote_characters (const char *);
134 
136 
137 extern void
139 
140 extern void
142 
143 extern void
145 
147 
149 
151 
153 
155 
157 
159 
160 extern char **
162 
163 extern char octave_rl_prompt_start_ignore (void);
164 
165 extern char octave_rl_prompt_end_ignore (void);
166 
167 extern void octave_rl_add_defun (const char *, rl_fcn_ptr, int);
168 
169 extern void octave_rl_set_terminal_name (const char *);
170 
171 extern void octave_rl_initialize (void);
172 
173 extern int octave_rl_history_search_forward (int, int);
174 
175 extern int octave_rl_history_search_backward (int, int);
176 
177 extern int octave_rl_ctrl (char);
178 
179 extern int octave_rl_meta (char);
180 
181 #if defined (__cplusplus)
182 }
183 #endif
184 
185 #endif
int octave_rl_do_undo(void)
int(* rl_fcn_ptr)(int, int)
Definition: oct-rl-edit.h:34
int octave_rl_newline(int, int)
void octave_rl_set_dequoting_function(rl_dequoting_fcn_ptr)
char * octave_rl_readline(const char *)
void octave_rl_set_terminal_name(const char *)
void octave_rl_set_completion_word_break_hook(rl_completion_hook_fcn_ptr)
void octave_rl_redisplay(void)
int octave_rl_filename_quoting_desired(int)
F77_RET_T F77_REAL &F77_RET_T F77_DBLE &F77_RET_T F77_REAL &F77_RET_T F77_DBLE &F77_RET_T F77_REAL &F77_RET_T F77_DBLE &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 F77_REAL &F77_RET_T F77_DBLE &F77_RET_T F77_DBLE &F77_RET_T F77_REAL &F77_RET_T F77_REAL &F77_RET_T F77_DBLE &F77_RET_T const F77_DBLE F77_DBLE &F77_RET_T const F77_REAL F77_REAL &F77_RET_T F77_REAL F77_REAL &F77_RET_T F77_DBLE F77_DBLE &F77_RET_T const F77_DBLE const F77_DBLE * f
int octave_rl_screen_width(void)
int(* rl_event_hook_fcn_ptr)(void)
Definition: oct-rl-edit.h:32
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:2682
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:42
void octave_rl_resize_terminal(void)
char *(* rl_completer_fcn_ptr)(const char *, int)
Definition: oct-rl-edit.h:38
char octave_rl_prompt_start_ignore(void)
int octave_rl_point(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:30
void octave_rl_clear_screen(int skip_redisplay)
int octave_rl_history_search_forward(int, int)
void octave_rl_read_init_file(const char *)
char *(* rl_dequoting_fcn_ptr)(char *, int)
Definition: oct-rl-edit.h:44
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:28
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:48
void octave_rl_insert_text(const char *)
char **(* rl_attempted_completion_fcn_ptr)(const char *, int, int)
Definition: oct-rl-edit.h:36
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:46
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)
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)
char *(* rl_completion_hook_fcn_ptr)(void)
Definition: oct-rl-edit.h:40
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 *)