document extra argument.

This commit is contained in:
christos 2009-02-19 01:18:02 +00:00
parent 96a6346404
commit 963ecab70c
1 changed files with 7 additions and 3 deletions

View File

@ -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 *)"