xref: /freebsd/contrib/tcsh/ed.decls.h (revision 2357939bc239bd5334a169b62313806178dd8f30)
1 /* $Header: /src/pub/tcsh/ed.decls.h,v 3.31 2002/03/08 17:36:45 christos Exp $ */
2 /*
3  * ed.decls.h: Editor external definitions
4  */
5 /*-
6  * Copyright (c) 1980, 1991 The Regents of the University of California.
7  * All rights reserved.
8  *
9  * Redistribution and use in source and binary forms, with or without
10  * modification, are permitted provided that the following conditions
11  * are met:
12  * 1. Redistributions of source code must retain the above copyright
13  *    notice, this list of conditions and the following disclaimer.
14  * 2. Redistributions in binary form must reproduce the above copyright
15  *    notice, this list of conditions and the following disclaimer in the
16  *    documentation and/or other materials provided with the distribution.
17  * 3. Neither the name of the University nor the names of its contributors
18  *    may be used to endorse or promote products derived from this software
19  *    without specific prior written permission.
20  *
21  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
22  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
23  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
24  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
25  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
26  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
27  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
28  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
29  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31  * SUCH DAMAGE.
32  */
33 #ifndef _h_ed_decls
34 #define _h_ed_decls
35 
36 /*
37  * ed.chared.c
38  */
39 extern	int	InsertStr		__P((Char *));
40 extern	void	DeleteBack		__P((int));
41 extern	void	SetKillRing		__P((int));
42 
43 /*
44  * ed.init.c
45  */
46 #ifdef SIG_WINDOW
47 extern	void	check_window_size	__P((int));
48 extern	sigret_t window_change		__P((int));
49 #endif /* SIG_WINDOW */
50 extern	int	ed_Setup		__P((int));
51 extern	void	ed_Init			__P((void));
52 extern	int	Cookedmode		__P((void));
53 extern	int	Rawmode			__P((void));
54 extern	void	ed_set_tty_eight_bit	__P((void));
55 
56 extern	void	QuoteModeOn		__P((void));
57 extern	void	QuoteModeOff		__P((void));
58 extern	void	ResetInLine		__P((int));
59 extern	int	Load_input_line		__P((void));
60 
61 /*
62  * ed.term.c:
63  */
64 extern	void	dosetty			__P((Char **, struct command *));
65 extern	int	tty_getty 		__P((int, ttydata_t *));
66 extern	int	tty_setty 		__P((int, ttydata_t *));
67 extern	void	tty_getchar 		__P((ttydata_t *, unsigned char *));
68 extern	void	tty_setchar 		__P((ttydata_t *, unsigned char *));
69 extern	speed_t	tty_getspeed 		__P((ttydata_t *));
70 extern	int	tty_gettabs 		__P((ttydata_t *));
71 extern	int	tty_geteightbit		__P((ttydata_t *));
72 extern	int	tty_cooked_mode		__P((ttydata_t *));
73 #ifdef _IBMR2
74 extern	void	tty_setdisc		__P((int, int));
75 #endif /* _IBMR2 */
76 
77 /*
78  * ed.screen.c
79  */
80 extern	void	terminit		__P((void));
81 extern	void	SetAttributes		__P((int));
82 extern	void	so_write		__P((Char *, int));
83 extern	void	ClearScreen		__P((void));
84 extern	void	MoveToLine		__P((int));
85 extern	void	MoveToChar		__P((int));
86 extern	void	ClearEOL		__P((int));
87 extern	void	Insert_write		__P((Char *, int));
88 extern	void	DeleteChars		__P((int));
89 extern	void	TellTC			__P((char *));
90 extern	void	SetTC			__P((char *, char *));
91 extern	void	EchoTC			__P((Char **));
92 extern	int 	SetArrowKeys		__P((CStr *, XmapVal *, int));
93 extern	int 	IsArrowKey		__P((Char *));
94 extern	void	ResetArrowKeys		__P((void));
95 extern	void	DefaultArrowKeys	__P((void));
96 extern	int 	ClearArrowKeys		__P((CStr *));
97 extern	void 	PrintArrowKeys		__P((CStr *));
98 extern	void	BindArrowKeys		__P((void));
99 extern	void	SoundBeep		__P((void));
100 extern	int	CanWeTab		__P((void));
101 extern	void	ChangeSize		__P((int, int));
102 #ifdef SIG_WINDOW
103 extern	int	GetSize			__P((int *, int *));
104 #endif /* SIG_WINDOW */
105 extern	void	ClearToBottom		__P((void));
106 extern	void	GetTermCaps		__P((void));
107 
108 /*
109  * ed.defns.c
110  */
111 extern	void	editinit		__P((void));
112 extern	void	ed_InitNLSMaps		__P((void));
113 #ifdef DEBUG_EDIT
114 extern	void	CheckMaps		__P((void));
115 #endif
116 extern	void	ed_InitMaps		__P((void));
117 extern	void	ed_InitEmacsMaps	__P((void));
118 extern	void	ed_InitVIMaps		__P((void));
119 
120 extern  CCRETVAL	e_unassigned		__P((int));
121 extern	CCRETVAL	e_insert		__P((int));
122 extern	CCRETVAL	e_newline		__P((int));
123 extern	CCRETVAL	e_delprev		__P((int));
124 extern	CCRETVAL	e_delnext		__P((int));
125 /* added by mtk@ari.ncl.omron.co.jp (920818) */
126 extern	CCRETVAL	e_delnext_eof		__P((int));
127 extern	CCRETVAL	e_delnext_list		__P((int));
128 extern	CCRETVAL	e_delnext_list_eof	__P((int));	/* for ^D */
129 extern	CCRETVAL	e_toend			__P((int));
130 extern	CCRETVAL	e_tobeg			__P((int));
131 extern	CCRETVAL	e_charback		__P((int));
132 extern	CCRETVAL	e_charfwd		__P((int));
133 extern	CCRETVAL	e_quote			__P((int));
134 extern	CCRETVAL	e_startover		__P((int));
135 extern	CCRETVAL	e_redisp		__P((int));
136 extern	CCRETVAL	e_wordback		__P((int));
137 extern	CCRETVAL	e_wordfwd		__P((int));
138 extern	CCRETVAL	v_wordbegnext		__P((int));
139 extern	CCRETVAL	e_uppercase		__P((int));
140 extern	CCRETVAL	e_lowercase		__P((int));
141 extern	CCRETVAL	e_capitolcase		__P((int));
142 extern	CCRETVAL	e_cleardisp		__P((int));
143 extern	CCRETVAL	e_complete		__P((int));
144 extern	CCRETVAL	e_correct		__P((int));
145 extern	CCRETVAL	e_correctl		__P((int));
146 extern	CCRETVAL	e_up_hist		__P((int));
147 extern	CCRETVAL	e_down_hist		__P((int));
148 extern	CCRETVAL	e_up_search_hist	__P((int));
149 extern	CCRETVAL	e_down_search_hist	__P((int));
150 extern	CCRETVAL	e_helpme		__P((int));
151 extern	CCRETVAL	e_list_choices		__P((int));
152 extern	CCRETVAL	e_delwordprev		__P((int));
153 extern	CCRETVAL	e_delwordnext		__P((int));
154 extern	CCRETVAL	e_digit			__P((int));
155 extern	CCRETVAL	e_argdigit		__P((int));
156 extern	CCRETVAL	v_zero			__P((int));
157 extern	CCRETVAL	e_killend		__P((int));
158 extern	CCRETVAL	e_killbeg		__P((int));
159 extern	CCRETVAL	e_metanext		__P((int));
160 #ifdef notdef
161 extern	CCRETVAL	e_extendnext		__P((int));
162 #endif
163 extern	CCRETVAL	e_send_eof		__P((int));
164 extern	CCRETVAL	e_charswitch		__P((int));
165 extern	CCRETVAL	e_gcharswitch		__P((int));
166 extern	CCRETVAL	e_which			__P((int));
167 extern	CCRETVAL	e_yank_kill		__P((int));
168 extern	CCRETVAL	e_tty_dsusp		__P((int));
169 extern	CCRETVAL	e_tty_flusho		__P((int));
170 extern	CCRETVAL	e_tty_quit		__P((int));
171 extern	CCRETVAL	e_tty_tsusp		__P((int));
172 extern	CCRETVAL	e_tty_stopo		__P((int));
173 extern	CCRETVAL	e_tty_starto		__P((int));
174 extern	CCRETVAL	e_argfour		__P((int));
175 extern	CCRETVAL	e_set_mark		__P((int));
176 extern	CCRETVAL	e_exchange_mark		__P((int));
177 extern	CCRETVAL	e_last_item		__P((int));
178 extern	CCRETVAL	v_cmd_mode		__P((int));
179 extern	CCRETVAL	v_insert		__P((int));
180 extern	CCRETVAL	v_replmode		__P((int));
181 extern	CCRETVAL	v_replone		__P((int));
182 extern	CCRETVAL	v_substline		__P((int));
183 extern	CCRETVAL	v_substchar		__P((int));
184 extern	CCRETVAL	v_add			__P((int));
185 extern	CCRETVAL	v_addend		__P((int));
186 extern	CCRETVAL	v_insbeg		__P((int));
187 extern	CCRETVAL	v_chgtoend		__P((int));
188 extern	CCRETVAL	e_killregion		__P((int));
189 extern	CCRETVAL	e_killall		__P((int));
190 extern	CCRETVAL	e_copyregion		__P((int));
191 extern	CCRETVAL	e_tty_int		__P((int));
192 extern	CCRETVAL	e_run_fg_editor		__P((int));
193 extern	CCRETVAL	e_list_eof		__P((int));
194 extern	CCRETVAL	e_expand_history	__P((int));
195 extern	CCRETVAL	e_magic_space		__P((int));
196 extern	CCRETVAL	e_list_glob		__P((int));
197 extern	CCRETVAL	e_expand_glob		__P((int));
198 extern	CCRETVAL	e_insovr		__P((int));
199 extern	CCRETVAL	v_cm_complete		__P((int));
200 extern	CCRETVAL	e_copyprev		__P((int));
201 extern	CCRETVAL	v_change_case		__P((int));
202 extern	CCRETVAL	e_expand		__P((int));
203 extern	CCRETVAL	e_expand_vars		__P((int));
204 extern	CCRETVAL	e_toggle_hist		__P((int));
205 extern  CCRETVAL        e_load_average		__P((int));
206 extern  CCRETVAL        v_delprev		__P((int));
207 extern  CCRETVAL        v_delmeta		__P((int));
208 extern  CCRETVAL        v_wordfwd		__P((int));
209 extern  CCRETVAL        v_wordback		__P((int));
210 extern  CCRETVAL        v_endword		__P((int));
211 extern  CCRETVAL        v_eword			__P((int));
212 extern  CCRETVAL        v_undo			__P((int));
213 extern  CCRETVAL        v_ush_meta		__P((int));
214 extern  CCRETVAL        v_dsh_meta		__P((int));
215 extern  CCRETVAL        v_rsrch_fwd		__P((int));
216 extern  CCRETVAL        v_rsrch_back		__P((int));
217 extern  CCRETVAL        v_char_fwd		__P((int));
218 extern  CCRETVAL        v_char_back		__P((int));
219 extern  CCRETVAL        v_chgmeta		__P((int));
220 extern	CCRETVAL	e_inc_fwd		__P((int));
221 extern	CCRETVAL	e_inc_back		__P((int));
222 extern	CCRETVAL	v_rchar_fwd		__P((int));
223 extern	CCRETVAL	v_rchar_back		__P((int));
224 extern  CCRETVAL        v_charto_fwd		__P((int));
225 extern  CCRETVAL        v_charto_back		__P((int));
226 extern  CCRETVAL        e_normalize_path	__P((int));
227 extern  CCRETVAL        e_normalize_command	__P((int));
228 extern  CCRETVAL        e_stuff_char		__P((int));
229 extern  CCRETVAL        e_list_all		__P((int));
230 extern  CCRETVAL        e_complete_all		__P((int));
231 extern  CCRETVAL        e_complete_fwd		__P((int));
232 extern  CCRETVAL        e_complete_back		__P((int));
233 extern  CCRETVAL        e_dabbrev_expand	__P((int));
234 extern  CCRETVAL	e_copy_to_clipboard	__P((int));
235 extern  CCRETVAL	e_paste_from_clipboard	__P((int));
236 extern  CCRETVAL	e_dosify_next		__P((int));
237 extern  CCRETVAL	e_dosify_prev		__P((int));
238 extern  CCRETVAL	e_page_up			__P((int));
239 extern  CCRETVAL	e_page_down			__P((int));
240 extern  CCRETVAL	e_yank_pop		__P((int));
241 
242 /*
243  * ed.inputl.c
244  */
245 extern	int	Inputl			__P((void));
246 extern	int	GetNextChar		__P((Char *));
247 extern	void	PushMacro		__P((Char *));
248 
249 /*
250  * ed.refresh.c
251  */
252 extern	void	ClearLines		__P((void));
253 extern	void	ClearDisp		__P((void));
254 extern	void	Refresh			__P((void));
255 extern	void	RefCursor		__P((void));
256 extern	void	RefPlusOne		__P((void));
257 extern	void	PastBottom		__P((void));
258 
259 /*
260  * ed.xmap.c
261  */
262 extern  XmapVal *XmapStr		__P((CStr *));
263 extern  XmapVal *XmapCmd		__P((int));
264 extern	void	 AddXkey		__P((CStr *, XmapVal *, int));
265 extern	void	 ClearXkey		__P((KEYCMD *, CStr *));
266 extern	int	 GetXkey		__P((CStr *, XmapVal *));
267 extern	void	 ResetXmap		__P((void));
268 extern	int	 DeleteXkey		__P((CStr *));
269 extern	void	 PrintXkey		__P((CStr *));
270 extern	int	 printOne		__P((CStr *, XmapVal *, int));
271 extern	int		  parseescape	__P((const Char **));
272 extern	unsigned char    *unparsestring	__P((CStr *, unsigned char *, Char *));
273 
274 #endif /* _h_ed_decls */
275