commit 8bc3e8e2d6b42b422ef87e5da916b162cf2fd7d5 Author: Steffen Daode Nurpmeso Date: 2012-09-10 15:23:37 +0200 Document EL_UNBUFFERED for el_set() diff --git a/lib/libedit/editline.3 b/lib/libedit/editline.3 index fe58321..a08a0f0 100644 --- a/lib/libedit/editline.3 +++ b/lib/libedit/editline.3 @@ -385,6 +385,14 @@ check this (using .Fn el_get ) to determine if editing should be enabled or not. +.It Dv EL_UNBUFFERED , Fa "int flag" +If +.Fa flag +is zero, +unbuffered mode is disabled (the default). +In unbuffered mode, +.Fn el_gets +will return immediately after processing a single character. .It Dv EL_GETCFN , Fa "int (*f)(EditLine *, char *c)" Define the character reading function as .Fa f , @@ -487,10 +495,7 @@ previously registered with the corresponding .Fn el_set call. .It Dv EL_UNBUFFERED , Fa "int" -Sets or clears unbuffered mode. -In this mode, -.Fn el_gets -will return immediately after processing a single character. +Return non-zero if unbuffered mode is enabled. .It Dv EL_PREP_TERM , Fa "int" Sets or clears terminal editing mode. .It Dv EL_GETFP , Fa "int fd", Fa "FILE **fp"