summaryrefslogtreecommitdiff
path: root/lib/libedit/prompt.h
diff options
context:
space:
mode:
authorOtto Moerbeek <otto@cvs.openbsd.org>2003-10-31 08:42:25 +0000
committerOtto Moerbeek <otto@cvs.openbsd.org>2003-10-31 08:42:25 +0000
commit6ff1c1765c2b4495f0292fe730d9bb9a5daef063 (patch)
treef9b79c5d3b01533c847610f8410f66661df68535 /lib/libedit/prompt.h
parent4c1c60ce562b0cf6d8cb6e2e49e2b53193359874 (diff)
Update to NetBSD libedit (from Oct 1, 2003), adding some string
cleaning and history bug fixes. The code includes GNU libreadline functionality, but the corresponding header files are not installed, since some libreadline functions are missing. There are some minor API changes, notably: old: EditLine *el_init(const char *, FILE *, FILE *); new: EditLine *el_init(const char *, FILE *, FILE *, FILE *); old: HistEvent *history(History *h, int op, ...); new: int history(History *h, HistEvent *ev, int op, ...); plus some changes in operation names. See editline(3) for details. Tested by djm@, mouring@, jmc@. ok deraadt@
Diffstat (limited to 'lib/libedit/prompt.h')
-rw-r--r--lib/libedit/prompt.h19
1 files changed, 10 insertions, 9 deletions
diff --git a/lib/libedit/prompt.h b/lib/libedit/prompt.h
index 6318315b925..9236fcbffc0 100644
--- a/lib/libedit/prompt.h
+++ b/lib/libedit/prompt.h
@@ -1,5 +1,5 @@
-/* $OpenBSD: prompt.h,v 1.5 2003/06/02 20:18:40 millert Exp $ */
-/* $NetBSD: prompt.h,v 1.2 1997/01/11 06:48:05 lukem Exp $ */
+/* $OpenBSD: prompt.h,v 1.6 2003/10/31 08:42:24 otto Exp $ */
+/* $NetBSD: prompt.h,v 1.6 2003/08/07 16:44:32 agc Exp $ */
/*-
* Copyright (c) 1992, 1993
@@ -39,20 +39,21 @@
* el.prompt.h: Prompt printing stuff
*/
#ifndef _h_el_prompt
-#define _h_el_prompt
+#define _h_el_prompt
#include "histedit.h"
typedef char * (*el_pfunc_t)(EditLine*);
typedef struct el_prompt_t {
- el_pfunc_t p_func; /* Function to return the prompt */
- coord_t p_pos; /* position in the line after prompt */
+ el_pfunc_t p_func; /* Function to return the prompt */
+ coord_t p_pos; /* position in the line after prompt */
} el_prompt_t;
-protected void prompt_print(EditLine *);
-protected int prompt_set(EditLine *, el_pfunc_t);
-protected int prompt_init(EditLine *);
-protected void prompt_end(EditLine *);
+protected void prompt_print(EditLine *, int);
+protected int prompt_set(EditLine *, el_pfunc_t, int);
+protected int prompt_get(EditLine *, el_pfunc_t *, int);
+protected int prompt_init(EditLine *);
+protected void prompt_end(EditLine *);
#endif /* _h_el_prompt */