Deleted Added
full compact
editline.3 (238173) editline.3 (238378)
1.\" $NetBSD: editline.3,v 1.70 2009/07/05 21:55:24 perry Exp $
2.\"
3.\" Copyright (c) 1997-2003 The NetBSD Foundation, Inc.
4.\" All rights reserved.
5.\"
6.\" This file was contributed to The NetBSD Foundation by Luke Mewburn.
7.\"
8.\" Redistribution and use in source and binary forms, with or without

--- 12 unchanged lines hidden (view full) ---

21.\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
22.\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
23.\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
24.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
25.\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
26.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
27.\" POSSIBILITY OF SUCH DAMAGE.
28.\"
1.\" $NetBSD: editline.3,v 1.70 2009/07/05 21:55:24 perry Exp $
2.\"
3.\" Copyright (c) 1997-2003 The NetBSD Foundation, Inc.
4.\" All rights reserved.
5.\"
6.\" This file was contributed to The NetBSD Foundation by Luke Mewburn.
7.\"
8.\" Redistribution and use in source and binary forms, with or without

--- 12 unchanged lines hidden (view full) ---

21.\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
22.\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
23.\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
24.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
25.\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
26.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
27.\" POSSIBILITY OF SUCH DAMAGE.
28.\"
29.\" $FreeBSD: head/lib/libedit/editline.3 238173 2012-07-06 16:43:56Z pfg $
29.\" $FreeBSD: head/lib/libedit/editline.3 238378 2012-07-11 22:20:19Z pfg $
30.\"
31.Dd July 5, 2009
32.Dt EDITLINE 3
33.Os
34.Sh NAME
35.Nm editline ,
36.Nm el_init ,
37.Nm el_end ,

--- 119 unchanged lines hidden (view full) ---

157state.
158.It Fn el_gets
159Read a line from the tty.
160.Fa count
161is modified to contain the number of characters read.
162Returns the line read if successful, or
163.Dv NULL
164if no characters were read or if an error occurred.
30.\"
31.Dd July 5, 2009
32.Dt EDITLINE 3
33.Os
34.Sh NAME
35.Nm editline ,
36.Nm el_init ,
37.Nm el_end ,

--- 119 unchanged lines hidden (view full) ---

157state.
158.It Fn el_gets
159Read a line from the tty.
160.Fa count
161is modified to contain the number of characters read.
162Returns the line read if successful, or
163.Dv NULL
164if no characters were read or if an error occurred.
165If an error occurred,
166.Fa count
167is set to \-1 and
168.Dv errno
169contains the error code that caused it.
165The return value may not remain valid across calls to
166.Fn el_gets
167and must be copied if the data is to be retained.
168.It Fn el_getc
169Read a character from the tty.
170.Fa ch
171is modified to contain the character read.
172Returns the number of characters read if successful, \-1 otherwise.

--- 660 unchanged lines hidden ---
170The return value may not remain valid across calls to
171.Fn el_gets
172and must be copied if the data is to be retained.
173.It Fn el_getc
174Read a character from the tty.
175.Fa ch
176is modified to contain the character read.
177Returns the number of characters read if successful, \-1 otherwise.

--- 660 unchanged lines hidden ---