xref: /original-bsd/lib/libedit/prompt.h (revision c3e32dec)
1 /*-
2  * Copyright (c) 1992, 1993
3  *	The Regents of the University of California.  All rights reserved.
4  *
5  * This code is derived from software contributed to Berkeley by
6  * Christos Zoulas of Cornell University.
7  *
8  * %sccs.include.redist.c%
9  *
10  *	@(#)prompt.h	8.1 (Berkeley) 06/04/93
11  */
12 
13 /*
14  * el.prompt.h: Prompt printing stuff
15  */
16 #ifndef _h_el_prompt
17 #define _h_el_prompt
18 
19 #include "histedit.h"
20 
21 typedef char * (*el_pfunc_t) __P((EditLine*));
22 
23 typedef struct el_prompt_t {
24     el_pfunc_t p_func;		/* Function to return the prompt	*/
25     coord_t    p_pos;		/* position in the line after prompt	*/
26 } el_prompt_t;
27 
28 protected void prompt_print	__P((EditLine *));
29 protected int  prompt_set	__P((EditLine *, el_pfunc_t));
30 protected int  prompt_init	__P((EditLine *));
31 protected void prompt_end	__P((EditLine *));
32 
33 #endif /* _h_el_prompt */
34