154227Sbostic /*- 2*61275Sbostic * Copyright (c) 1992, 1993 3*61275Sbostic * The Regents of the University of California. All rights reserved. 454227Sbostic * 554227Sbostic * This code is derived from software contributed to Berkeley by 654227Sbostic * Christos Zoulas of Cornell University. 754227Sbostic * 854227Sbostic * %sccs.include.redist.c% 954227Sbostic * 10*61275Sbostic * @(#)prompt.h 8.1 (Berkeley) 06/04/93 1154227Sbostic */ 1254227Sbostic 1354227Sbostic /* 1454227Sbostic * el.prompt.h: Prompt printing stuff 1554227Sbostic */ 1654227Sbostic #ifndef _h_el_prompt 1754227Sbostic #define _h_el_prompt 1854227Sbostic 1954246Smarc #include "histedit.h" 2054227Sbostic 2154227Sbostic typedef char * (*el_pfunc_t) __P((EditLine*)); 2254227Sbostic 2354227Sbostic typedef struct el_prompt_t { 2454227Sbostic el_pfunc_t p_func; /* Function to return the prompt */ 2554227Sbostic coord_t p_pos; /* position in the line after prompt */ 2654227Sbostic } el_prompt_t; 2754227Sbostic 2854227Sbostic protected void prompt_print __P((EditLine *)); 2954227Sbostic protected int prompt_set __P((EditLine *, el_pfunc_t)); 3054227Sbostic protected int prompt_init __P((EditLine *)); 3154227Sbostic protected void prompt_end __P((EditLine *)); 3254227Sbostic 3354227Sbostic #endif /* _h_el_prompt */ 34