Mercurial > hg > octave-lyh
annotate liboctave/oct-rl-edit.h @ 7758:8e14a01ffe9f
input.cc (Fre_read_readline_init_file): new function
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Mon, 05 May 2008 03:21:52 -0400 |
parents | a1dbe9d80eee |
children | eb63fbe60fab |
rev | line source |
---|---|
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 | |
7758
8e14a01ffe9f
input.cc (Fre_read_readline_init_file): new function
John W. Eaton <jwe@octave.org>
parents:
7017
diff
changeset
|
87 extern void octave_rl_re_read_init_file (void); |
8e14a01ffe9f
input.cc (Fre_read_readline_init_file): new function
John W. Eaton <jwe@octave.org>
parents:
7017
diff
changeset
|
88 |
4143 | 89 extern int octave_rl_filename_completion_desired (int); |
90 | |
6979 | 91 extern int octave_rl_filename_quoting_desired (int); |
92 | |
4604 | 93 extern char *octave_rl_filename_completion_function (const char *, int); |
94 | |
3933 | 95 extern void octave_rl_set_basic_word_break_characters (const char *); |
96 | |
97 extern void octave_rl_set_completer_word_break_characters (const char *); | |
98 | |
3519 | 99 extern void octave_rl_set_basic_quote_characters (const char *); |
100 | |
6979 | 101 extern void octave_rl_set_filename_quote_characters (const char *); |
102 | |
103 extern void octave_rl_set_completer_quote_characters (const char *); | |
104 | |
3519 | 105 extern void octave_rl_set_completion_append_character (char); |
106 | |
107 extern void | |
108 octave_rl_set_completion_function (rl_attempted_completion_fcn_ptr); | |
109 | |
6979 | 110 extern void |
111 octave_rl_set_quoting_function (rl_quoting_fcn_ptr); | |
112 | |
113 extern void | |
114 octave_rl_set_dequoting_function (rl_dequoting_fcn_ptr); | |
115 | |
116 extern void octave_rl_set_char_is_quoted_function (rl_char_is_quoted_fcn_ptr); | |
117 | |
3519 | 118 extern void octave_rl_set_startup_hook (rl_startup_hook_fcn_ptr); |
119 | |
120 extern rl_startup_hook_fcn_ptr octave_rl_get_startup_hook (void); | |
121 | |
122 extern void octave_rl_set_event_hook (rl_event_hook_fcn_ptr f); | |
123 | |
124 extern rl_event_hook_fcn_ptr octave_rl_get_event_hook (void); | |
125 | |
126 extern char ** | |
127 octave_rl_completion_matches (const char *, rl_completer_fcn_ptr); | |
128 | |
129 extern char octave_rl_prompt_start_ignore (void); | |
130 | |
131 extern char octave_rl_prompt_end_ignore (void); | |
132 | |
133 extern void octave_rl_add_defun (const char *, rl_fcn_ptr, char); | |
134 | |
135 extern void octave_rl_set_terminal_name (const char *); | |
136 | |
137 extern void octave_rl_initialize (void); | |
138 | |
139 extern int octave_rl_history_search_forward (int, int); | |
140 | |
141 extern int octave_rl_history_search_backward (int, int); | |
142 | |
143 extern char octave_rl_ctrl (char); | |
144 | |
145 extern char octave_rl_meta (char); | |
146 | |
147 #ifdef __cplusplus | |
148 } | |
149 #endif | |
150 | |
151 #endif | |
152 | |
153 /* | |
154 ;;; Local Variables: *** | |
155 ;;; mode: C++ *** | |
156 ;;; End: *** | |
157 */ |