3519
|
1 /* |
|
2 |
|
3 Copyright (C) 2000 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 2, or (at your option) any |
|
10 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, write to the Free |
5307
|
19 Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA |
|
20 02110-1301, USA. |
3519
|
21 |
|
22 */ |
|
23 |
|
24 #if !defined (octave_rl_edit_h) |
|
25 #define octave_rl_edit_h 1 |
|
26 |
4802
|
27 typedef int (*rl_startup_hook_fcn_ptr) (void); |
3519
|
28 |
4802
|
29 typedef int (*rl_event_hook_fcn_ptr) (void); |
3519
|
30 |
|
31 typedef int (*rl_fcn_ptr) (int, int); |
|
32 |
|
33 typedef char ** (*rl_attempted_completion_fcn_ptr) (const char *, int, int); |
|
34 |
|
35 typedef char * (*rl_completer_fcn_ptr) (const char *, int); |
|
36 |
|
37 #ifdef __cplusplus |
|
38 extern "C" |
|
39 { |
|
40 #endif |
|
41 |
|
42 extern int octave_rl_screen_height (void); |
|
43 |
|
44 extern int octave_rl_screen_width (void); |
|
45 |
3779
|
46 extern void octave_rl_enable_paren_matching (int); |
3519
|
47 |
|
48 extern void octave_rl_init (void); |
|
49 |
|
50 extern void octave_rl_clear_screen (void); |
|
51 |
|
52 extern void octave_rl_resize_terminal (void); |
|
53 |
|
54 extern void octave_rl_restore_terminal_state (void); |
|
55 |
|
56 extern void octave_rl_insert_text (const char *); |
|
57 |
|
58 extern void octave_rl_newline (void); |
|
59 |
|
60 extern void octave_rl_clear_undo_list (void); |
|
61 |
|
62 extern void octave_rl_set_name (const char *); |
|
63 |
|
64 extern char *octave_rl_readline (const char *); |
|
65 |
|
66 extern void octave_rl_set_input_stream (FILE *); |
|
67 |
|
68 extern FILE *octave_rl_get_input_stream (void); |
|
69 |
|
70 extern void octave_rl_set_output_stream (FILE *); |
|
71 |
|
72 extern FILE *octave_rl_get_output_stream (void); |
|
73 |
|
74 extern void octave_rl_read_init_file (const char *); |
|
75 |
4143
|
76 extern int octave_rl_filename_completion_desired (int); |
|
77 |
4604
|
78 extern char *octave_rl_filename_completion_function (const char *, int); |
|
79 |
3933
|
80 extern void octave_rl_set_basic_word_break_characters (const char *); |
|
81 |
|
82 extern void octave_rl_set_completer_word_break_characters (const char *); |
|
83 |
3519
|
84 extern void octave_rl_set_basic_quote_characters (const char *); |
|
85 |
|
86 extern void octave_rl_set_completion_append_character (char); |
|
87 |
|
88 extern void |
|
89 octave_rl_set_completion_function (rl_attempted_completion_fcn_ptr); |
|
90 |
|
91 extern void octave_rl_set_startup_hook (rl_startup_hook_fcn_ptr); |
|
92 |
|
93 extern rl_startup_hook_fcn_ptr octave_rl_get_startup_hook (void); |
|
94 |
|
95 extern void octave_rl_set_event_hook (rl_event_hook_fcn_ptr f); |
|
96 |
|
97 extern rl_event_hook_fcn_ptr octave_rl_get_event_hook (void); |
|
98 |
|
99 extern char ** |
|
100 octave_rl_completion_matches (const char *, rl_completer_fcn_ptr); |
|
101 |
|
102 extern char octave_rl_prompt_start_ignore (void); |
|
103 |
|
104 extern char octave_rl_prompt_end_ignore (void); |
|
105 |
|
106 extern void octave_rl_add_defun (const char *, rl_fcn_ptr, char); |
|
107 |
|
108 extern void octave_rl_set_terminal_name (const char *); |
|
109 |
|
110 extern void octave_rl_initialize (void); |
|
111 |
|
112 extern int octave_rl_history_search_forward (int, int); |
|
113 |
|
114 extern int octave_rl_history_search_backward (int, int); |
|
115 |
|
116 extern char octave_rl_ctrl (char); |
|
117 |
|
118 extern char octave_rl_meta (char); |
|
119 |
|
120 #ifdef __cplusplus |
|
121 } |
|
122 #endif |
|
123 |
|
124 #endif |
|
125 |
|
126 /* |
|
127 ;;; Local Variables: *** |
|
128 ;;; mode: C++ *** |
|
129 ;;; End: *** |
|
130 */ |