3519
|
1 /* |
|
2 |
7017
|
3 Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2007 John W. Eaton |
3519
|
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 |
7016
|
9 Free Software Foundation; either version 3 of the License, or (at your |
|
10 option) any later version. |
3519
|
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 |
7016
|
18 along with Octave; see the file COPYING. If not, see |
|
19 <http://www.gnu.org/licenses/>. |
3519
|
20 |
|
21 */ |
|
22 |
|
23 #if !defined (octave_rl_edit_h) |
|
24 #define octave_rl_edit_h 1 |
|
25 |
4802
|
26 typedef int (*rl_startup_hook_fcn_ptr) (void); |
3519
|
27 |
4802
|
28 typedef int (*rl_event_hook_fcn_ptr) (void); |
3519
|
29 |
|
30 typedef int (*rl_fcn_ptr) (int, int); |
|
31 |
|
32 typedef char ** (*rl_attempted_completion_fcn_ptr) (const char *, int, int); |
|
33 |
|
34 typedef char * (*rl_completer_fcn_ptr) (const char *, int); |
|
35 |
6979
|
36 typedef char * (*rl_quoting_fcn_ptr) (char *, int, char *); |
|
37 |
|
38 typedef char * (*rl_dequoting_fcn_ptr) (char *, int); |
|
39 |
|
40 typedef int (*rl_char_is_quoted_fcn_ptr) (char *, int); |
|
41 |
|
42 typedef int (*rl_command_fcn_ptr) (int, int); |
|
43 |
3519
|
44 #ifdef __cplusplus |
|
45 extern "C" |
|
46 { |
|
47 #endif |
|
48 |
6979
|
49 extern void octave_rl_redisplay (void); |
|
50 |
3519
|
51 extern int octave_rl_screen_height (void); |
|
52 |
|
53 extern int octave_rl_screen_width (void); |
|
54 |
3779
|
55 extern void octave_rl_enable_paren_matching (int); |
3519
|
56 |
|
57 extern void octave_rl_init (void); |
|
58 |
|
59 extern void octave_rl_clear_screen (void); |
|
60 |
|
61 extern void octave_rl_resize_terminal (void); |
|
62 |
|
63 extern void octave_rl_restore_terminal_state (void); |
|
64 |
|
65 extern void octave_rl_insert_text (const char *); |
|
66 |
6979
|
67 extern int octave_rl_newline (int, int); |
|
68 |
|
69 extern const char *octave_rl_line_buffer (void); |
3519
|
70 |
|
71 extern void octave_rl_clear_undo_list (void); |
|
72 |
|
73 extern void octave_rl_set_name (const char *); |
|
74 |
|
75 extern char *octave_rl_readline (const char *); |
|
76 |
|
77 extern void octave_rl_set_input_stream (FILE *); |
|
78 |
|
79 extern FILE *octave_rl_get_input_stream (void); |
|
80 |
|
81 extern void octave_rl_set_output_stream (FILE *); |
|
82 |
|
83 extern FILE *octave_rl_get_output_stream (void); |
|
84 |
|
85 extern void octave_rl_read_init_file (const char *); |
|
86 |
4143
|
87 extern int octave_rl_filename_completion_desired (int); |
|
88 |
6979
|
89 extern int octave_rl_filename_quoting_desired (int); |
|
90 |
4604
|
91 extern char *octave_rl_filename_completion_function (const char *, int); |
|
92 |
3933
|
93 extern void octave_rl_set_basic_word_break_characters (const char *); |
|
94 |
|
95 extern void octave_rl_set_completer_word_break_characters (const char *); |
|
96 |
3519
|
97 extern void octave_rl_set_basic_quote_characters (const char *); |
|
98 |
6979
|
99 extern void octave_rl_set_filename_quote_characters (const char *); |
|
100 |
|
101 extern void octave_rl_set_completer_quote_characters (const char *); |
|
102 |
3519
|
103 extern void octave_rl_set_completion_append_character (char); |
|
104 |
|
105 extern void |
|
106 octave_rl_set_completion_function (rl_attempted_completion_fcn_ptr); |
|
107 |
6979
|
108 extern void |
|
109 octave_rl_set_quoting_function (rl_quoting_fcn_ptr); |
|
110 |
|
111 extern void |
|
112 octave_rl_set_dequoting_function (rl_dequoting_fcn_ptr); |
|
113 |
|
114 extern void octave_rl_set_char_is_quoted_function (rl_char_is_quoted_fcn_ptr); |
|
115 |
3519
|
116 extern void octave_rl_set_startup_hook (rl_startup_hook_fcn_ptr); |
|
117 |
|
118 extern rl_startup_hook_fcn_ptr octave_rl_get_startup_hook (void); |
|
119 |
|
120 extern void octave_rl_set_event_hook (rl_event_hook_fcn_ptr f); |
|
121 |
|
122 extern rl_event_hook_fcn_ptr octave_rl_get_event_hook (void); |
|
123 |
|
124 extern char ** |
|
125 octave_rl_completion_matches (const char *, rl_completer_fcn_ptr); |
|
126 |
|
127 extern char octave_rl_prompt_start_ignore (void); |
|
128 |
|
129 extern char octave_rl_prompt_end_ignore (void); |
|
130 |
|
131 extern void octave_rl_add_defun (const char *, rl_fcn_ptr, char); |
|
132 |
|
133 extern void octave_rl_set_terminal_name (const char *); |
|
134 |
|
135 extern void octave_rl_initialize (void); |
|
136 |
|
137 extern int octave_rl_history_search_forward (int, int); |
|
138 |
|
139 extern int octave_rl_history_search_backward (int, int); |
|
140 |
|
141 extern char octave_rl_ctrl (char); |
|
142 |
|
143 extern char octave_rl_meta (char); |
|
144 |
|
145 #ifdef __cplusplus |
|
146 } |
|
147 #endif |
|
148 |
|
149 #endif |
|
150 |
|
151 /* |
|
152 ;;; Local Variables: *** |
|
153 ;;; mode: C++ *** |
|
154 ;;; End: *** |
|
155 */ |