diff options
| author | christos <christos@NetBSD.org> | 2009-02-19 01:18:02 +0000 |
|---|---|---|
| committer | christos <christos@NetBSD.org> | 2009-02-19 01:18:02 +0000 |
| commit | 963ecab70cbc385cab6e9364c0968668d7c5987e (patch) | |
| tree | 5b1fc766ba04dca88ad98d5ae57edc4e05b45dd3 /lib/libedit | |
| parent | 96a63464047107943d6ea3c2060e802f4c8570c5 (diff) | |
document extra argument.
Diffstat (limited to 'lib/libedit')
| -rw-r--r-- | lib/libedit/editline.3 | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/lib/libedit/editline.3 b/lib/libedit/editline.3 index efb8ac9dd3f..9aa8c06eae8 100644 --- a/lib/libedit/editline.3 +++ b/lib/libedit/editline.3 @@ -1,4 +1,4 @@ -.\" $NetBSD: editline.3,v 1.57 2008/04/30 13:10:51 martin Exp $ +.\" $NetBSD: editline.3,v 1.58 2009/02/19 01:18:02 christos Exp $ .\" .\" Copyright (c) 1997-2003 The NetBSD Foundation, Inc. .\" All rights reserved. @@ -26,7 +26,7 @@ .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE .\" POSSIBILITY OF SUCH DAMAGE. .\" -.Dd April 5, 2008 +.Dd February 18, 2009 .Os .Dt EDITLINE 3 .Sh NAME @@ -213,10 +213,14 @@ The following values for .Fa op are supported, along with the required argument list: .Bl -tag -width 4n -.It Dv EL_PROMPT , Fa "char *(*f)(EditLine *)" +.It Dv EL_PROMPT , Fa "char *(*f)(EditLine *)", Fa "void *arg" Define prompt printing function as .Fa f , which is to return a string that contains the prompt. +The optional argument +.Fa arg , +get be retrieved with +.Fn el_get . .It Dv EL_REFRESH Re-display the current line on the next terminal line. .It Dv EL_RPROMPT , Fa "char *(*f)(EditLine *)" |
