Changeset View
Changeset View
Standalone View
Standalone View
lib/libedit/prompt.h
/* $NetBSD: prompt.h,v 1.13 2016/02/17 19:47:49 christos Exp $ */ | /* $NetBSD: prompt.h,v 1.15 2016/05/09 21:46:56 christos Exp $ */ | ||||
/*- | /*- | ||||
* Copyright (c) 1992, 1993 | * Copyright (c) 1992, 1993 | ||||
* The Regents of the University of California. All rights reserved. | * The Regents of the University of California. All rights reserved. | ||||
* | * | ||||
* This code is derived from software contributed to Berkeley by | * This code is derived from software contributed to Berkeley by | ||||
* Christos Zoulas of Cornell University. | * Christos Zoulas of Cornell University. | ||||
* | * | ||||
Show All 26 Lines | |||||
*/ | */ | ||||
/* | /* | ||||
* el.prompt.h: Prompt printing stuff | * el.prompt.h: Prompt printing stuff | ||||
*/ | */ | ||||
#ifndef _h_el_prompt | #ifndef _h_el_prompt | ||||
#define _h_el_prompt | #define _h_el_prompt | ||||
typedef Char *(*el_pfunc_t)(EditLine *); | typedef wchar_t *(*el_pfunc_t)(EditLine *); | ||||
typedef struct el_prompt_t { | typedef struct el_prompt_t { | ||||
el_pfunc_t p_func; /* Function to return the prompt */ | el_pfunc_t p_func; /* Function to return the prompt */ | ||||
coord_t p_pos; /* position in the line after prompt */ | coord_t p_pos; /* position in the line after prompt */ | ||||
Char p_ignore; /* character to start/end literal */ | wchar_t p_ignore; /* character to start/end literal */ | ||||
int p_wide; | int p_wide; | ||||
} el_prompt_t; | } el_prompt_t; | ||||
protected void prompt_print(EditLine *, int); | libedit_private void prompt_print(EditLine *, int); | ||||
protected int prompt_set(EditLine *, el_pfunc_t, Char, int, int); | libedit_private int prompt_set(EditLine *, el_pfunc_t, wchar_t, int, int); | ||||
protected int prompt_get(EditLine *, el_pfunc_t *, Char *, int); | libedit_private int prompt_get(EditLine *, el_pfunc_t *, wchar_t *, int); | ||||
protected int prompt_init(EditLine *); | libedit_private int prompt_init(EditLine *); | ||||
protected void prompt_end(EditLine *); | libedit_private void prompt_end(EditLine *); | ||||
#endif /* _h_el_prompt */ | #endif /* _h_el_prompt */ |