Commit | Line | Data |
---|---|---|
f0b5ba25 KB |
1 | /*- |
2 | * Copyright (c) 1992 The Regents of the University of California. | |
3 | * 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 | * | |
b6dd18ed | 10 | * @(#)prompt.h 5.3 (Berkeley) %G% |
f0b5ba25 KB |
11 | */ |
12 | ||
13 | /* | |
14 | * el.prompt.h: Prompt printing stuff | |
15 | */ | |
16 | #ifndef _h_el_prompt | |
17 | #define _h_el_prompt | |
18 | ||
25b839a8 | 19 | #include "histedit.h" |
f0b5ba25 KB |
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 */ |